]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/GnomeFontMap.cpp
2 ******************************************************************************
3 * Copyright (C) 1998-2003, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 ******************************************************************************
10 #include "freetype/freetype.h"
12 #include "layout/LEFontInstance.h"
13 #include "GnomeFontInstance.h"
15 #include "GUISupport.h"
17 #include "GnomeFontMap.h"
19 GnomeFontMap::GnomeFontMap(TT_Engine engine
, const char *fileName
, le_int16 pointSize
, GUISupport
*guiSupport
, LEErrorCode
&status
)
20 : FontMap(fileName
, pointSize
, guiSupport
, status
), fEngine(engine
)
25 GnomeFontMap::~GnomeFontMap()
30 const LEFontInstance
*GnomeFontMap::openFont(const char *fontName
, le_int16 pointSize
, LEErrorCode
&status
)
32 LEFontInstance
*result
= new GnomeFontInstance(fEngine
, fontName
, pointSize
, status
);
34 if (LE_FAILURE(status
)) {