From 544c85ee017dc909f4bbaf3b33400d18a23e2c4c Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Mon, 9 Aug 2004 18:52:51 +0000 Subject: [PATCH] Break and default char are both relative to first char in the winfnt header. --- dlls/gdi/freetype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gdi/freetype.c b/dlls/gdi/freetype.c index 107e643d291..efbd9fff119 100644 --- a/dlls/gdi/freetype.c +++ b/dlls/gdi/freetype.c @@ -2607,8 +2607,8 @@ static BOOL get_bitmap_text_metrics(GdiFont font) TM.tmDigitizedAspectY = winfnt_header.vertical_resolution; TM.tmFirstChar = winfnt_header.first_char; TM.tmLastChar = winfnt_header.last_char; - TM.tmDefaultChar = winfnt_header.default_char; - TM.tmBreakChar = winfnt_header.break_char; + TM.tmDefaultChar = winfnt_header.default_char + winfnt_header.first_char; + TM.tmBreakChar = winfnt_header.break_char + winfnt_header.first_char; TM.tmItalic = winfnt_header.italic; TM.tmUnderlined = font->underline; TM.tmStruckOut = font->strikeout;