summaryrefslogtreecommitdiff
path: root/ports/SkFontHost_win_dw.cpp
diff options
context:
space:
mode:
authorbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-08 20:32:07 +0000
committerbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-08 20:32:07 +0000
commitd50b1e2203bb8f02294b1fa181caa0b1a264dc6a (patch)
tree7e188355a89bcca5d437cab590c90acb1e7076b1 /ports/SkFontHost_win_dw.cpp
parent88158cbb5a9ace70d67876442ebd7bcdde700458 (diff)
downloadsrc-d50b1e2203bb8f02294b1fa181caa0b1a264dc6a.tar.gz
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/src@12966 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'ports/SkFontHost_win_dw.cpp')
-rw-r--r--ports/SkFontHost_win_dw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/SkFontHost_win_dw.cpp b/ports/SkFontHost_win_dw.cpp
index a6dd2b16..438bf198 100644
--- a/ports/SkFontHost_win_dw.cpp
+++ b/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;