Bobby Bingham : gdi32: Add support for the GGO_UNHINTED flag in GetGlyphOutline.
Alexandre Julliard
julliard at winehq.org
Tue Oct 28 10:02:31 CDT 2008
Module: wine
Branch: master
Commit: a900f5e06509237ea87d81eda5ee67a150571afa
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a900f5e06509237ea87d81eda5ee67a150571afa
Author: Bobby Bingham <uhmmmm at gmail.com>
Date: Sun Oct 26 18:20:13 2008 -0400
gdi32: Add support for the GGO_UNHINTED flag in GetGlyphOutline.
---
dlls/gdi32/freetype.c | 5 +++++
include/wingdi.h | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 313e625..2e64038 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -4373,6 +4373,11 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format,
original_index = glyph_index;
}
+ if(format & GGO_UNHINTED) {
+ load_flags |= FT_LOAD_NO_HINTING;
+ format &= ~GGO_UNHINTED;
+ }
+
/* tategaki never appears to happen to lower glyph index */
if (glyph_index < TATEGAKI_LOWER_BOUND )
tategaki = FALSE;
diff --git a/include/wingdi.h b/include/wingdi.h
index 322a267..e7be055 100644
--- a/include/wingdi.h
+++ b/include/wingdi.h
@@ -1294,6 +1294,7 @@ typedef struct
#define GGO_GRAY4_BITMAP 5
#define GGO_GRAY8_BITMAP 6
#define GGO_GLYPH_INDEX 0x80
+#define GGO_UNHINTED 0x100
#ifdef __WINESRC__
#define WINE_GGO_GRAY16_BITMAP 0x7f
More information about the wine-cvs
mailing list