]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/GnomeFontMap.cpp
2 ******************************************************************************
3 * Copyright (C) 1998-2006, International Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 ******************************************************************************
11 #include FT_FREETYPE_H
13 #include "layout/LEFontInstance.h"
14 #include "GnomeFontInstance.h"
16 #include "GUISupport.h"
18 #include "GnomeFontMap.h"
20 GnomeFontMap::GnomeFontMap(FT_Library engine
, const char *fileName
, le_int16 pointSize
, GUISupport
*guiSupport
, LEErrorCode
&status
)
21 : FontMap(fileName
, pointSize
, guiSupport
, status
), fEngine(engine
)
26 GnomeFontMap::~GnomeFontMap()
31 const LEFontInstance
*GnomeFontMap::openFont(const char *fontName
, le_int16 pointSize
, LEErrorCode
&status
)
33 LEFontInstance
*result
= new GnomeFontInstance(fEngine
, fontName
, pointSize
, status
);
35 if (LE_FAILURE(status
)) {