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 ******************************************************************************
15 #include FT_FREETYPE_H
17 #include "layout/LEFontInstance.h"
18 #include "GnomeFontInstance.h"
20 #include "GUISupport.h"
22 #include "GnomeFontMap.h"
24 GnomeFontMap::GnomeFontMap(FT_Library engine, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status)
25 : FontMap(fileName, pointSize, guiSupport, status), fEngine(engine)
30 GnomeFontMap::~GnomeFontMap()
35 const LEFontInstance *GnomeFontMap::openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status)
37 LEFontInstance *result = new GnomeFontInstance(fEngine, fontName, pointSize, status);
39 if (LE_FAILURE(status)) {