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