]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/gnomeglue.cpp
3 * (C) Copyright IBM Corp. 1998-2007 - All Rights Reserved
11 #include "unicode/utypes.h"
16 #include "gnomeglue.h"
19 #include "LEFontInstance.h"
20 #include "GnomeGUISupport.h"
21 #include "GnomeFontMap.h"
22 #include "GnomeFontInstance.h"
23 #include "ScriptCompositeFontInstance.h"
28 gs_guiSupport
*gs_gnomeGuiSupportOpen()
30 return (gs_guiSupport
*) new GnomeGUISupport();
33 void gs_gnomeGuiSupportClose(gs_guiSupport
*guiSupport
)
35 GnomeGUISupport
*gs
= (GnomeGUISupport
*) guiSupport
;
40 rs_surface
*rs_gnomeRenderingSurfaceOpen(GtkWidget
*theWidget
)
42 return (rs_surface
*) new GnomeSurface(theWidget
);
45 void rs_gnomeRenderingSurfaceClose(rs_surface
*surface
)
47 GnomeSurface
*rs
= (GnomeSurface
*) surface
;
52 fm_fontMap
*fm_gnomeFontMapOpen(FT_Library engine
, const char *fileName
, le_int16 pointSize
, gs_guiSupport
*guiSupport
, LEErrorCode
*status
)
54 return (fm_fontMap
*) new GnomeFontMap(engine
, fileName
, pointSize
, (GnomeGUISupport
*) guiSupport
, *status
);
57 void fm_fontMapClose(fm_fontMap
*fontMap
)
59 GnomeFontMap
*fm
= (GnomeFontMap
*) fontMap
;
64 le_font
*le_scriptCompositeFontOpen(fm_fontMap
*fontMap
)
66 return (le_font
*) new ScriptCompositeFontInstance((FontMap
*) fontMap
);
69 void le_fontClose(le_font
*font
)
71 LEFontInstance
*fi
= (LEFontInstance
*) font
;