1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

LibGfx: Make Font::glyph_width*() APIs return float

This commit is contained in:
Andreas Kling 2023-01-03 14:55:48 +01:00
parent 3407ab0fd1
commit 555d7a6fce
7 changed files with 14 additions and 14 deletions

View file

@ -308,7 +308,7 @@ bool BitmapFont::contains_glyph(u32 code_point) const
return index.has_value() && m_glyph_widths[index.value()] > 0;
}
u8 BitmapFont::glyph_width(u32 code_point) const
float BitmapFont::glyph_width(u32 code_point) const
{
if (is_ascii(code_point) && !is_ascii_printable(code_point))
return 0;