1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 17:15:08 +00:00
serenity/Tests/LibWeb/Layout/input/textnode-width-bitmap-font.html
circl 6b30847120 LibWeb: Don't add an extra glyph spacing to width of TextNode
When calculating the width of text using a bitmap font, a glyph spacing
is added at the end of each fragment, including the last one. This meant
that everything was 1 pixel too long. This bug did not affect vector
fonts.
2023-11-04 17:39:04 +01:00

1 line
69 B
HTML

<!DOCTYPE html><p style="font-family: Katica">This is some text.</p>