]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/gdiglue.cpp
3 * (C) Copyright IBM Corp. 1998-2007 - All Rights Reserved
9 #include "unicode/utypes.h"
17 #include "LEFontInstance.h"
18 #include "GDIGUISupport.h"
19 #include "GDIFontMap.h"
20 #include "ScriptCompositeFontInstance.h"
25 gs_guiSupport
*gs_gdiGuiSupportOpen()
27 return (gs_guiSupport
*) new GDIGUISupport();
30 void gs_gdiGuiSupportClose(gs_guiSupport
*guiSupport
)
32 GDIGUISupport
*gs
= (GDIGUISupport
*) guiSupport
;
37 rs_surface
*rs_gdiRenderingSurfaceOpen(HDC hdc
)
39 return (rs_surface
*) new GDISurface(hdc
);
42 void rs_gdiRenderingSurfaceSetHDC(rs_surface
*surface
, HDC hdc
)
44 GDISurface
*rs
= (GDISurface
*) surface
;
49 void rs_gdiRenderingSurfaceClose(rs_surface
*surface
)
51 GDISurface
*rs
= (GDISurface
*) surface
;
56 fm_fontMap
*fm_gdiFontMapOpen(rs_surface
*surface
, const char *fileName
, le_int16 pointSize
, gs_guiSupport
*guiSupport
, LEErrorCode
*status
)
58 return (fm_fontMap
*) new GDIFontMap((GDISurface
*) surface
, fileName
, pointSize
, (GDIGUISupport
*) guiSupport
, *status
);
61 void fm_fontMapClose(fm_fontMap
*fontMap
)
63 GDIFontMap
*fm
= (GDIFontMap
*) fontMap
;
68 le_font
*le_scriptCompositeFontOpen(fm_fontMap
*fontMap
)
70 return (le_font
*) new ScriptCompositeFontInstance((FontMap
*) fontMap
);
73 void le_fontClose(le_font
*font
)
75 LEFontInstance
*fi
= (LEFontInstance
*) font
;