]> git.saurik.com Git - apple/icu.git/blame - icuSources/samples/layout/GDIFontMap.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / samples / layout / GDIFontMap.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
A
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
28class GDIFontMap : public FontMap
29{
30public:
31 GDIFontMap(GDISurface *surface, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status);
32
33 virtual ~GDIFontMap();
34
35protected:
36 virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status);
37
38private:
39 GDISurface *fSurface;
40};
41
42#endif