haikuwebkit/LayoutTests/fast/text/vertical-displacement-simpl...

9 lines
263 B
HTML
Raw Permalink Normal View History

Text shaping in the simple path is flipped in the y direction https://bugs.webkit.org/show_bug.cgi?id=185062 <rdar://problem/39778678> Reviewed by Simon Fraser. Source/WebCore: Shaping in our simple codepath occurs in an "increasing-y-goes-up" coordinate system, but our painting code uses an "increasing-y-goes-down" coordinate system. We weren't fixing up the coordinate systems because we never noticed. This is because the simple codepath is only designed for kerning and ligatures, neither of which move glyphs vertically in the common case. Test: fast/text/vertical-displacement-simple-codepath.html * platform/graphics/Font.cpp: (WebCore::Font::applyTransforms const): * platform/graphics/WidthIterator.cpp: (WebCore::WidthIterator::applyFontTransforms): Tools: Huge thanks to Ulrike Rausch of LiebeFonts for contributing the test fonts!!! * Scripts/webkitpy/common/config/contributors.json: LayoutTests: This test renders a font which uses our fast text codepath but also includes vertical displacements inside its liga feature. The test makes sure that the vertical displacement occurs in the correct direction. The test fonts were created by Ulrike Rausch of LiebeFonts specifically for the purpose of testing. Huge thanks to her!! Figuring out this bug would not have been possible if not for her huge help! * fast/text/resources/LiebeTest-calt.woff: Added. * fast/text/resources/LiebeTest-dlig.woff: Added. * fast/text/resources/LiebeTest-liga.woff: Added. * fast/text/resources/LiebeTest-swsh.woff: Added. * fast/text/vertical-displacement-simple-codepath-expected.html: Added. * fast/text/vertical-displacement-simple-codepath.html: Added. Canonical link: https://commits.webkit.org/200794@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231361 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-05-04 17:38:54 +00:00
<!DOCTYPE html>
<html>
<head>
</head>
<body>
This test makes sure that vertical displacements in our fast text codepath are using the correct coordinate system. The test passes if this text you are reading right now is the only thing on the page.
</body>
</html>