summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2013-08-16 18:23:22 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-16 18:34:26 +0200
commit15269be91709c7a8d86abefb4840c5c565486714 (patch)
tree162259b3b3918fb80bac41f73aad4c6c902b2ff7 /Source
parenta59824df76181c52d1f9edcb8d08e7ea1c163b66 (diff)
downloadqtwebkit-15269be91709c7a8d86abefb4840c5c565486714.tar.gz
[Qt] Kerning in fast font path breaks letter-spacing
https://bugs.webkit.org/show_bug.cgi?id=119838 Reviewed by Jocelyn Turcotte. Source/WebCore: Mark fonts with both kerning and letter-spacing as unsupported by the simple font-path. Test: fast/text/letter-spacing-kerned.html * platform/graphics/WidthIterator.h: (WebCore::WidthIterator::supportsTypesettingFeatures): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154186 268f45cc-cd09-0410-ab3c-d52691b4dbfc Task-number: QTBUG-32891 Change-Id: I26ef2b8e3953b7e07f42931a233802644ab586e1 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'Source')
-rw-r--r--Source/WebCore/platform/graphics/WidthIterator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/WidthIterator.h b/Source/WebCore/platform/graphics/WidthIterator.h
index 6dc1c206c..43007e80d 100644
--- a/Source/WebCore/platform/graphics/WidthIterator.h
+++ b/Source/WebCore/platform/graphics/WidthIterator.h
@@ -66,7 +66,7 @@ public:
return !(font.typesettingFeatures() & ~(Kerning | Ligatures));
#elif PLATFORM(QT) && QT_VERSION >= 0x050100
- return !(font.typesettingFeatures() & ~Kerning) && !font.isSmallCaps();
+ return !(font.typesettingFeatures() & ~Kerning) && !font.isSmallCaps() && !font.letterSpacing();
#else
return !font.typesettingFeatures();
#endif