]> git.saurik.com Git - apple/icu.git/blame - icuSources/samples/layout/GnomeFontMap.h
ICU-64232.0.1.tar.gz
[apple/icu.git] / icuSources / samples / layout / GnomeFontMap.h
CommitLineData
b75a7d8f 1/*
f3c0d7a5
A
2 *******************************************************************************
3 * © 2016 and later: Unicode, Inc. and others.
4 * License & terms of use: http://www.unicode.org/copyright.html#License
5 *******************************************************************************
b75a7d8f 6 ******************************************************************************
46f4442e 7 * Copyright (C) 1998-2006, International Business Machines Corporation and *
b75a7d8f
A
8 * others. All Rights Reserved. *
9 ******************************************************************************
10 */
11
12#ifndef __GNOMEFONTMAP_H
13#define __GNOMEFONTMAP_H
14
46f4442e
A
15#include <ft2build.h>
16#include FT_FREETYPE_H
b75a7d8f
A
17
18#include "unicode/uscript.h"
19
20#include "layout/LETypes.h"
21#include "layout/LEFontInstance.h"
22
23#include "GUISupport.h"
24#include "FontMap.h"
25
26#define BUFFER_SIZE 128
27
28class GnomeFontMap : public FontMap
29{
30 public:
46f4442e 31 GnomeFontMap(FT_Library engine, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status);
b75a7d8f
A
32
33 virtual ~GnomeFontMap();
34
35 protected:
36 virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status);
37
38 private:
46f4442e 39 FT_Library fEngine;
b75a7d8f
A
40};
41
42#endif