From 97a5d5da167a511eb092ebbeae9d27d44204ea8c Mon Sep 17 00:00:00 2001 From: "bungeman@google.com" Date: Wed, 8 Jan 2014 20:32:07 +0000 Subject: [PATCH] Improve 'stretch' in legacy create typeface for DirectWrite. Previously the stretch (width) property was set to UNDEFINED, since the legacy create typeface does not have this information. However, a better default here is NORMAL. Review URL: https://codereview.chromium.org/127813003 git-svn-id: http://skia.googlecode.com/svn/trunk@12966 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/ports/SkFontHost_win_dw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ports/SkFontHost_win_dw.cpp b/src/ports/SkFontHost_win_dw.cpp index a6dd2b1..438bf19 100644 --- a/src/ports/SkFontHost_win_dw.cpp +++ b/src/ports/SkFontHost_win_dw.cpp @@ -1789,7 +1789,7 @@ SkTypeface* SkFontMgr_DirectWrite::onLegacyCreateTypeface(const char familyName[ DWRITE_FONT_WEIGHT weight = (styleBits & SkTypeface::kBold) ? DWRITE_FONT_WEIGHT_BOLD : DWRITE_FONT_WEIGHT_NORMAL; - DWRITE_FONT_STRETCH stretch = DWRITE_FONT_STRETCH_UNDEFINED; + DWRITE_FONT_STRETCH stretch = DWRITE_FONT_STRETCH_NORMAL; DWRITE_FONT_STYLE italic = (styleBits & SkTypeface::kItalic) ? DWRITE_FONT_STYLE_ITALIC : DWRITE_FONT_STYLE_NORMAL; -- 2.7.4