1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

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.
This commit is contained in:
circl 2023-10-28 15:39:57 +02:00 committed by Andreas Kling
parent 2660bbb94f
commit 6b30847120
3 changed files with 25 additions and 1 deletions

View file

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