]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/FontMap.h
2 ******************************************************************************
3 * Copyright (C) 1998-2003, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 ******************************************************************************
11 #include "layout/LETypes.h"
12 #include "layout/LEScripts.h"
13 #include "layout/LEFontInstance.h"
15 #include "GUISupport.h"
17 #define BUFFER_SIZE 128
22 FontMap(const char *fileName
, le_int16 pointSize
, GUISupport
*guiSupport
, LEErrorCode
&status
);
26 virtual const LEFontInstance
*getScriptFont(le_int32 scriptCode
, LEErrorCode
&status
);
28 virtual le_int16
getPointSize() const;
30 virtual le_int32
getAscent() const;
32 virtual le_int32
getDescent() const;
34 virtual le_int32
getLeading() const;
37 virtual const LEFontInstance
*openFont(const char *fontName
, le_int16 pointSize
, LEErrorCode
&status
) = 0;
39 char errorMessage
[256];
42 static char *strip(char *s
);
43 le_int32
getFontIndex(const char *fontName
);
53 GUISupport
*fGUISupport
;
55 const LEFontInstance
*fFontInstances
[scriptCodeCount
];
56 const char *fFontNames
[scriptCodeCount
];
57 le_int32 fFontIndices
[scriptCodeCount
];
60 inline le_int16
FontMap::getPointSize() const