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:
parent
2660bbb94f
commit
6b30847120
3 changed files with 25 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><p style="font-family: Katica">This is some text.</p>
|
Loading…
Add table
Add a link
Reference in a new issue