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