mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
This fixes a bug where, if a non-existent font family is specified in CSS, whitespaces would be rendered using the emoji font, while letters would use the default font. This issue occurred because the font was resolved separately for each code point. Since the emoji font was listed before the default font, it was chosen for whitespace characters due to its inclusion of whitespace glyphs (at least in the Apple Color Emoji font on macOS). This change resolves the issue by placing the default font before the emoji font in the list.
11 lines
643 B
Text
11 lines
643 B
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x17 children: inline
|
|
frag 0 from TextNode start: 0, length: 77, rect: [8,8 647.140625x17] baseline: 13.296875
|
|
"the same font is supposed to be used for all characters including whitespaces"
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x17]
|
|
TextPaintable (TextNode<#text>)
|