• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *******************************************************************************
3  * Copyright (C) 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-2006, International Business Machines Corporation and   *
8  * others. All Rights Reserved.                                               *
9  ******************************************************************************
10  */
11 
12 #ifndef __GNOMEFONTMAP_H
13 #define __GNOMEFONTMAP_H
14 
15 #include <ft2build.h>
16 #include FT_FREETYPE_H
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 
28 class GnomeFontMap : public FontMap
29 {
30  public:
31     GnomeFontMap(FT_Library engine, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status);
32 
33     virtual ~GnomeFontMap();
34 
35  protected:
36     virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status);
37 
38  private:
39     FT_Library fEngine;
40 };
41 
42 #endif
43