WebFont followed tiny monospace text displays weird
authorbashi@chromium.org <bashi@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Sep 2011 01:58:25 +0000 (01:58 +0000)
committerbashi@chromium.org <bashi@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Sep 2011 01:58:25 +0000 (01:58 +0000)
commit1e1723d7846a218a6a85c395d1629771a2522871
treef0d2bdb68eef7fc5ed95c7519d1fc654ee8bd56e
parent0053f4bbbb77f1af6cfb03ca5048329422da62a4
WebFont followed tiny monospace text displays weird
https://bugs.webkit.org/show_bug.cgi?id=67996

Reviewed by Darin Adler.

Source/WebCore:

Always call wkSetCGFontRenderingMode() in Font::drawGlyphs() so that the rendering mode is set correctly.

Test: platform/mac/fast/text/webfont-after-tiny-monospace-text.html

* platform/graphics/mac/FontMac.mm:
(WebCore::Font::drawGlyphs):

LayoutTests:

This test ensures that webfont followed tiny monospace text is displayed correctly.

* platform/mac/fast/text/webfont-after-tiny-monospace-text-expected.png: Added.
* platform/mac/fast/text/webfont-after-tiny-monospace-text-expected.txt: Added.
* platform/mac/fast/text/webfont-after-tiny-monospace-text.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@95070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/mac/fast/text/webfont-after-tiny-monospace-text-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/webfont-after-tiny-monospace-text-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/webfont-after-tiny-monospace-text.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/mac/FontMac.mm