Complex spaces with synthetic bold are too wide
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Sep 2011 17:05:22 +0000 (17:05 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Sep 2011 17:05:22 +0000 (17:05 +0000)
commit07f37a83809678e409b0d7af8bf2cb37cf78b31a
tree72e9b63f2e3994feeff366a85b2650c489983aaf
parentd68689d1e11d4a5fc237ba38b50af0921890d0ba
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
LayoutTests/ChangeLog
LayoutTests/fast/text/complex-synthetic-bold-space-width.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/atsui-multiple-renderers-expected.png
LayoutTests/platform/mac/fast/text/atsui-multiple-renderers-expected.txt
LayoutTests/platform/mac/fast/text/complex-synthetic-bold-space-width-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/complex-synthetic-bold-space-width-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/mac/ComplexTextController.cpp
Source/WebCore/platform/graphics/win/UniscribeController.cpp