Complex spaces with synthetic bold are too wide
https://bugs.webkit.org/show_bug.cgi?id=69033
Patch by Ned Holbrook <nholbrook@apple.com> on 2011-09-30
Reviewed by Dan Bernstein.
Source/WebCore:
Test: fast/text/complex-synthetic-bold-space-width.html
* platform/graphics/mac/ComplexTextController.cpp:
(WebCore::ComplexTextController::adjustGlyphsAndAdvances): Subtract synthetic bold offset from spaceWidth.
* platform/graphics/win/UniscribeController.cpp:
(WebCore::UniscribeController::shapeAndPlaceItem): Ditto.
LayoutTests:
* fast/text/complex-synthetic-bold-space-width.html: Added.
* platform/mac/fast/text/atsui-multiple-renderers-expected.png:
* platform/mac/fast/text/atsui-multiple-renderers-expected.txt:
* platform/mac/fast/text/complex-synthetic-bold-space-width-expected.png: Added.
* platform/mac/fast/text/complex-synthetic-bold-space-width-expected.txt: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@96404
268f45cc-cd09-0410-ab3c-
d52691b4dbfc