GnomeFontMap.h revision c73f511526464f8e56c242df80552e9b0d94ae3d
1/*
2 ******************************************************************************
3 * Copyright (C) 1998-2006, International Business Machines Corporation and   *
4 * others. All Rights Reserved.                                               *
5 ******************************************************************************
6 */
7
8#ifndef __GNOMEFONTMAP_H
9#define __GNOMEFONTMAP_H
10
11#include <ft2build.h>
12#include FT_FREETYPE_H
13
14#include "unicode/uscript.h"
15
16#include "layout/LETypes.h"
17#include "layout/LEFontInstance.h"
18
19#include "GUISupport.h"
20#include "FontMap.h"
21
22#define BUFFER_SIZE 128
23
24class GnomeFontMap : public FontMap
25{
26 public:
27    GnomeFontMap(FT_Library engine, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status);
28
29    virtual ~GnomeFontMap();
30
31 protected:
32    virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status);
33
34 private:
35    FT_Library fEngine;
36};
37
38#endif
39