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-2003, International Business Machines Corporation and *
8 * others. All Rights Reserved. *
9 ******************************************************************************
15 #include "layout/LETypes.h"
16 #include "layout/LEScripts.h"
17 #include "layout/LEFontInstance.h"
19 #include "GUISupport.h"
21 #define BUFFER_SIZE 128
26 FontMap(const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status);
30 virtual const LEFontInstance *getScriptFont(le_int32 scriptCode, LEErrorCode &status);
32 virtual le_int16 getPointSize() const;
34 virtual le_int32 getAscent() const;
36 virtual le_int32 getDescent() const;
38 virtual le_int32 getLeading() const;
41 virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status) = 0;
43 char errorMessage[256];
46 static char *strip(char *s);
47 le_int32 getFontIndex(const char *fontName);
57 GUISupport *fGUISupport;
59 const LEFontInstance *fFontInstances[scriptCodeCount];
60 const char *fFontNames[scriptCodeCount];
61 le_int32 fFontIndices[scriptCodeCount];
64 inline le_int16 FontMap::getPointSize() const