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

Unified Diff: Source/platform/fonts/Font.cpp

Issue 263363005: Initial patch for FontVariant, variant like HalfWidth should take Complex Path (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@emoji_android
Patch Set: Updating test case Created 6 years, 7 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: Source/platform/fonts/Font.cpp
diff --git a/Source/platform/fonts/Font.cpp b/Source/platform/fonts/Font.cpp
index 8a1556ce5daf8308e9c054f07195a5c76d1ba101..2a4756e0be341ea21c908fee00fd1a72fe242d9d 100644
--- a/Source/platform/fonts/Font.cpp
+++ b/Source/platform/fonts/Font.cpp
@@ -232,6 +232,9 @@ CodePath Font::codePath(const TextRun& run) const
if (m_fontDescription.featureSettings() && m_fontDescription.featureSettings()->size() > 0)
return ComplexPath;
+ if (m_fontDescription.widthVariant() != RegularWidth)
+ return ComplexPath;
+
if (run.length() > 1 && !WidthIterator::supportsTypesettingFeatures(*this))
return ComplexPath;

Powered by Google App Engine
This is Rietveld 408576698