summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-49.1/samples/layout/GnomeFontMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/icu/icu-49.1/samples/layout/GnomeFontMap.h')
-rw-r--r--Build/source/libs/icu/icu-49.1/samples/layout/GnomeFontMap.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-49.1/samples/layout/GnomeFontMap.h b/Build/source/libs/icu/icu-49.1/samples/layout/GnomeFontMap.h
new file mode 100644
index 00000000000..a068b2b558f
--- /dev/null
+++ b/Build/source/libs/icu/icu-49.1/samples/layout/GnomeFontMap.h
@@ -0,0 +1,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