3 * Copyright (C) 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 "unicode/utypes.h"
20 #include "LEFontInstance.h"
21 #include "GDIGUISupport.h"
22 #include "GDIFontMap.h"
23 #include "ScriptCompositeFontInstance.h"
28 gs_guiSupport *gs_gdiGuiSupportOpen()
30 return (gs_guiSupport *) new GDIGUISupport();
33 void gs_gdiGuiSupportClose(gs_guiSupport *guiSupport)
35 GDIGUISupport *gs = (GDIGUISupport *) guiSupport;
40 rs_surface *rs_gdiRenderingSurfaceOpen(HDC hdc)
42 return (rs_surface *) new GDISurface(hdc);
45 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc)
47 GDISurface *rs = (GDISurface *) surface;
52 void rs_gdiRenderingSurfaceClose(rs_surface *surface)
54 GDISurface *rs = (GDISurface *) surface;
59 fm_fontMap *fm_gdiFontMapOpen(rs_surface *surface, const char *fileName, le_int16 pointSize, gs_guiSupport *guiSupport, LEErrorCode *status)
61 return (fm_fontMap *) new GDIFontMap((GDISurface *) surface, fileName, pointSize, (GDIGUISupport *) guiSupport, *status);
64 void fm_fontMapClose(fm_fontMap *fontMap)
66 GDIFontMap *fm = (GDIFontMap *) fontMap;
71 le_font *le_scriptCompositeFontOpen(fm_fontMap *fontMap)
73 return (le_font *) new ScriptCompositeFontInstance((FontMap *) fontMap);
76 void le_fontClose(le_font *font)
78 LEFontInstance *fi = (LEFontInstance *) font;