]> git.saurik.com Git - apple/icu.git/blame - icuSources/samples/layout/GnomeFontMap.h
ICU-531.48.tar.gz
[apple/icu.git] / icuSources / samples / layout / GnomeFontMap.h
CommitLineData
b75a7d8f
A
1/*
2 ******************************************************************************
46f4442e 3 * Copyright (C) 1998-2006, International Business Machines Corporation and *
b75a7d8f
A
4 * others. All Rights Reserved. *
5 ******************************************************************************
6 */
7
8#ifndef __GNOMEFONTMAP_H
9#define __GNOMEFONTMAP_H
10
46f4442e
A
11#include <ft2build.h>
12#include FT_FREETYPE_H
b75a7d8f
A
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:
46f4442e 27 GnomeFontMap(FT_Library engine, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status);
b75a7d8f
A
28
29 virtual ~GnomeFontMap();
30
31 protected:
32 virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status);
33
34 private:
46f4442e 35 FT_Library fEngine;
b75a7d8f
A
36};
37
38#endif