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

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: Code Issue fix 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 848251467a954e367f050dfb898d9882f213dfa9..06424b0e389e9a425a3d70717877f259d3a90163 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))
« no previous file with comments | « LayoutTests/fast/text/font-ligature-letter-spacing-expected.txt ('k') | Source/platform/fonts/FontDescription.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698