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:
parent
3407ab0fd1
commit
555d7a6fce
7 changed files with 14 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue