• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  ******************************************************************************
3  * Copyright (C) 1998-2003, International Business Machines Corporation and   *
4  * others. All Rights Reserved.                                               *
5  ******************************************************************************
6  */
7 
8 #ifndef __GDIFONTMAP_H
9 #define __GDIFONTMAP_H
10 
11 #include <windows.h>
12 
13 #include "unicode/uscript.h"
14 
15 #include "layout/LETypes.h"
16 #include "layout/LEFontInstance.h"
17 
18 #include "FontMap.h"
19 #include "GUISupport.h"
20 #include "GDIFontInstance.h"
21 
22 #define BUFFER_SIZE 128
23 
24 class GDIFontMap : public FontMap
25 {
26 public:
27     GDIFontMap(GDISurface *surface, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status);
28 
29     virtual ~GDIFontMap();
30 
31 protected:
32     virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status);
33 
34 private:
35     GDISurface *fSurface;
36 };
37 
38 #endif
39