mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 18:58:56 +00:00
LibGfx: Mark Typeface::get_font() const, because it is const
This commit is contained in:
parent
7106655c86
commit
c990340c5a
Notes:
sideshowbarker
2024-07-18 05:33:32 +09:00
Author: https://github.com/AtkinsSJ
Commit: c990340c5a
Pull-request: https://github.com/SerenityOS/serenity/pull/9421
Reviewed-by: https://github.com/TobyAsE
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ void Typeface::set_ttf_font(RefPtr<TTF::Font> font)
|
|||
m_ttf_font = font;
|
||||
}
|
||||
|
||||
RefPtr<Font> Typeface::get_font(unsigned size)
|
||||
RefPtr<Font> Typeface::get_font(unsigned size) const
|
||||
{
|
||||
for (auto font : m_bitmap_fonts) {
|
||||
if (font->presentation_size() == size)
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
void add_bitmap_font(RefPtr<BitmapFont>);
|
||||
void set_ttf_font(RefPtr<TTF::Font>);
|
||||
|
||||
RefPtr<Font> get_font(unsigned size);
|
||||
RefPtr<Font> get_font(unsigned size) const;
|
||||
|
||||
private:
|
||||
String m_family;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue