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

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: 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 4174de04c6b2304a0cc8ce0ef9d25640e21a5440..c6a5bf5526df8118294ef5cafe1c300fe3502bdf 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;
« no previous file with comments | « no previous file | Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp » ('j') | Source/platform/fonts/harfbuzz/HarfBuzzShaper.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698