Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Unified Diff: src/ports/SkFontHost_win.cpp

Issue 1818043002: SkTypeface::MakeFromName to take SkFontStyle. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Decrease the change scope for changing the width to a generic one. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/ports/SkFontHost_win.cpp
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp
index 10476ad4345f509073fd3a62d05cf176d891d95a..024da2d2d9a718f57e01d0929d5aca4319384289 100644
--- a/src/ports/SkFontHost_win.cpp
+++ b/src/ports/SkFontHost_win.cpp
@@ -324,6 +324,7 @@ SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT& origLF) {
make_canonical(&lf);
SkTypeface* face = SkTypefaceCache::FindByProcAndRef(FindByLogFont, &lf);
if (nullptr == face) {
+ lf.lfWidth = 0;
bungeman-skia 2016/03/22 20:16:43 Now that I look at what is actually happening and
Mikus 2016/03/24 12:08:26 Acknowledged.
face = LogFontTypeface::Create(lf);
SkTypefaceCache::Add(face, get_style(lf));
}

Powered by Google App Engine
This is Rietveld 408576698