]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/GDIFontMap.cpp
2 ******************************************************************************
3 * © 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 ******************************************************************************
14 #include "layout/LEFontInstance.h"
16 #include "GDIFontInstance.h"
18 #include "GUISupport.h"
20 #include "GDIFontMap.h"
22 GDIFontMap::GDIFontMap(GDISurface
*surface
, const char *fileName
, le_int16 pointSize
, GUISupport
*guiSupport
, LEErrorCode
&status
)
23 : FontMap(fileName
, pointSize
, guiSupport
, status
), fSurface(surface
)
28 GDIFontMap::~GDIFontMap()
33 const LEFontInstance
*GDIFontMap::openFont(const char *fontName
, le_int16 pointSize
, LEErrorCode
&status
)
35 LEFontInstance
*result
= new GDIFontInstance(fSurface
, fontName
, pointSize
, status
);
37 if (LE_FAILURE(status
)) {