]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/gnomeglue.cpp
3 * © 2016 and later: Unicode, Inc. and others.
4 * License & terms of use: http://www.unicode.org/copyright.html#License
6 * (C) Copyright IBM Corp. 1998-2007 - All Rights Reserved
12 #include FT_FREETYPE_H
14 #include "unicode/utypes.h"
19 #include "gnomeglue.h"
22 #include "LEFontInstance.h"
23 #include "GnomeGUISupport.h"
24 #include "GnomeFontMap.h"
25 #include "GnomeFontInstance.h"
26 #include "ScriptCompositeFontInstance.h"
31 gs_guiSupport
*gs_gnomeGuiSupportOpen()
33 return (gs_guiSupport
*) new GnomeGUISupport();
36 void gs_gnomeGuiSupportClose(gs_guiSupport
*guiSupport
)
38 GnomeGUISupport
*gs
= (GnomeGUISupport
*) guiSupport
;
43 rs_surface
*rs_gnomeRenderingSurfaceOpen(GtkWidget
*theWidget
)
45 return (rs_surface
*) new GnomeSurface(theWidget
);
48 void rs_gnomeRenderingSurfaceClose(rs_surface
*surface
)
50 GnomeSurface
*rs
= (GnomeSurface
*) surface
;
55 fm_fontMap
*fm_gnomeFontMapOpen(FT_Library engine
, const char *fileName
, le_int16 pointSize
, gs_guiSupport
*guiSupport
, LEErrorCode
*status
)
57 return (fm_fontMap
*) new GnomeFontMap(engine
, fileName
, pointSize
, (GnomeGUISupport
*) guiSupport
, *status
);
60 void fm_fontMapClose(fm_fontMap
*fontMap
)
62 GnomeFontMap
*fm
= (GnomeFontMap
*) fontMap
;
67 le_font
*le_scriptCompositeFontOpen(fm_fontMap
*fontMap
)
69 return (le_font
*) new ScriptCompositeFontInstance((FontMap
*) fontMap
);
72 void le_fontClose(le_font
*font
)
74 LEFontInstance
*fi
= (LEFontInstance
*) font
;