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

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

Issue 325673002: Fixing handling of Ligature when letter-spacing is present (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 a10f380fba89f8e385e2670870992912205a8638..3639348f92ccde9ada8b47e5c5abbd8d278db6e6 100644
--- a/Source/platform/fonts/Font.cpp
+++ b/Source/platform/fonts/Font.cpp
@@ -250,7 +250,7 @@ CodePath Font::codePath(const TextRun& run) const
return SimplePath;
#endif
- if (m_fontDescription.featureSettings() && m_fontDescription.featureSettings()->size() > 0)
+ if (m_fontDescription.featureSettings() && m_fontDescription.featureSettings()->size() > 0 && m_fontDescription.letterSpacing() == 0)
return ComplexPath;
if (run.length() > 1 && !WidthIterator::supportsTypesettingFeatures(*this))

Powered by Google App Engine
This is Rietveld 408576698