mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Before this change we always returned the font's point size as the x-height which was basically never correct. We now get it from the OS/2 table (if one with version >= 2 is available in the file). Otherwise we fall back to using the ascent of the 'x' glyph. Most fonts appear to have a sufficiently modern OS/2 table.
5 lines
336 B
Plaintext
5 lines
336 B
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x177.132812 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x161.132812 children: not-inline
|
|
BlockContainer <div> at (8,8) content-size 107.421875x161.132812 children: not-inline
|