]> git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/GnomeFontMap.h
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / samples / layout / GnomeFontMap.h
1 /*
2 ******************************************************************************
3 * Copyright (C) 1998-2003, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 ******************************************************************************
6 */
7
8 #ifndef __GNOMEFONTMAP_H
9 #define __GNOMEFONTMAP_H
10
11 #include "freetype/freetype.h"
12
13 #include "unicode/uscript.h"
14
15 #include "layout/LETypes.h"
16 #include "layout/LEFontInstance.h"
17
18 #include "GUISupport.h"
19 #include "FontMap.h"
20
21 #define BUFFER_SIZE 128
22
23 class GnomeFontMap : public FontMap
24 {
25 public:
26 GnomeFontMap(TT_Engine engine, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status);
27
28 virtual ~GnomeFontMap();
29
30 protected:
31 virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status);
32
33 private:
34 TT_Engine fEngine;
35 };
36
37 #endif