]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/Surface.cpp
2 * © 2016 and later: Unicode, Inc. and others.
3 * License & terms of use: http://www.unicode.org/copyright.html#License
5 * Copyright (C) 2003, International Business Machines
6 * Corporation and others. All Rights Reserved.
8 void GDISurface::setFont(RenderingFontInstance
*font
)
10 GDIFontInstance
*gFont
= (GDIFontInstance
*) font
;
12 if (fCurrentFont
!= font
) {
14 SelectObject(fHdc
, gFont
->fFont
);
18 void GDISurface::drawGlyphs(RenderingFontInstance
*font
, const LEGlyphID
*glyphs
, le_int32 count
, const le_int32
*dx
,
19 le_int32 x
, le_int32 y
, le_int32 width
, le_int32 height
)
30 ExtTextOut(fHdc
, x
, y
- fAscent
, ETO_CLIPPED
| ETO_GLYPH_INDEX
, &clip
,
31 glyphs
, count
, (INT
*) dx
);