mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +00:00
LibGfx: Make Gfx::FontMetrics include the advance of '0' instead of 'M'
CSS actually wants the advance of the ASCII '0' character for its "ch" units, so let's include that instead of the arbitrarily chosen 'M'.
This commit is contained in:
parent
2f7b6af87e
commit
0f6dd8c62b
3 changed files with 3 additions and 3 deletions
|
@ -377,7 +377,7 @@ FontMetrics Font::metrics() const
|
|||
return FontMetrics {
|
||||
.size = (float)presentation_size(),
|
||||
.x_height = (float)x_height(),
|
||||
.glyph_width = (float)glyph_width('M'),
|
||||
.advance_of_ascii_zero = (float)glyph_width('0'),
|
||||
.glyph_spacing = (float)glyph_spacing(),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue