[2/2] gdi32: Use ANSI character code as glyph index for bitmap fonts. (try 2)

Akihiro Sagawa sagawa.aki at gmail.com
Mon Dec 9 06:17:44 CST 2013


Fixes bug 34713, 24600.
The goal of this series is improving ExtText with ETO_GLYPH_INDEX flag
for bitmap fonts, e.g. Small Fonts.

MSDN document (ETO_GLYPH_INDEX flag in ExtTextOut function) says:
``Glyph indexing only applies to TrueType fonts, but the flag can be
used for bitmap and vector fonts to indicate that no further language
processing is necessary and GDI should process the string directly.''
My conformance test shows ExtTextOut treats ANSI character code as glyph
index for bitmap fonts then.

Changes in this version:
1. Split into 2 part.
    [1/2] is for GetGlyphIndices, [2/2] is for GetGlyphOutline
2. Improved tests.
    Add ExtText rendering tests. Removed tricky test in the past.
   (GetGlyphOutline doesn't work for bitmap fonts in Windows)

---
 dlls/gdi32/freetype.c   |  10 +++-
 dlls/gdi32/tests/font.c | 129 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 137 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-gdi32-Use-ANSI-character-code-as-glyph-index-for-bit.patch
Type: text/x-patch
Size: 6452 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20131209/a2816364/attachment.bin>


More information about the wine-patches mailing list