1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:17:36 +00:00

LibTTF: Address some minor TODOs in the font implementation

This commit is contained in:
Stephan Unverwerth 2021-01-03 19:43:11 +01:00 committed by Andreas Kling
parent 05d31cbeeb
commit de811faf55
2 changed files with 10 additions and 10 deletions

View file

@ -580,7 +580,7 @@ int ScaledFont::glyph_or_emoji_width(u32 code_point) const
u8 ScaledFont::glyph_fixed_width() const
{
return (u8)m_x_scale;
return glyph_metrics(glyph_id_for_codepoint(' ')).advance_width;
}
}