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
commit 6b30847120
Notes: sideshowbarker 2024-07-17 00:49:59 +09:00
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>