]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/GDIFontMap.cpp
   2  ****************************************************************************** 
   3  * Copyright (C) 1998-2003, International Business Machines Corporation and   * 
   4  * others. All Rights Reserved.                                               * 
   5  ****************************************************************************** 
  10 #include "layout/LEFontInstance.h" 
  12 #include "GDIFontInstance.h" 
  14 #include "GUISupport.h" 
  16 #include "GDIFontMap.h" 
  18 GDIFontMap::GDIFontMap(GDISurface 
*surface
, const char *fileName
, le_int16 pointSize
, GUISupport 
*guiSupport
, LEErrorCode 
&status
) 
  19     : FontMap(fileName
, pointSize
, guiSupport
, status
), fSurface(surface
) 
  24 GDIFontMap::~GDIFontMap() 
  29 const LEFontInstance 
*GDIFontMap::openFont(const char *fontName
, le_int16 pointSize
, LEErrorCode 
&status
) 
  31         LEFontInstance 
*result 
= new GDIFontInstance(fSurface
, fontName
, pointSize
, status
); 
  33         if (LE_FAILURE(status
)) {