mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibGfx: Make Font::glyph_width*() APIs return float
This commit is contained in:
parent
3407ab0fd1
commit
555d7a6fce
Notes:
sideshowbarker
2024-07-17 11:33:34 +09:00
Author: https://github.com/awesomekling
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