mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 22:29:13 +00:00
LibGUI+LibGfx+LibTTF: Make fontpicker handle TTF fonts
This commit is contained in:
committed by
Andreas Kling
parent
5a70ccecb3
commit
0f41f5d9ba
@@ -159,6 +159,7 @@ RefPtr<Gfx::Font> FontDatabase::get_by_name(const StringView& name)
|
||||
|
||||
RefPtr<Gfx::Font> FontDatabase::get(const String& family, unsigned size, unsigned weight)
|
||||
{
|
||||
dbgln("FontDatabase: Request font {} {} {}", family, size, weight);
|
||||
for (auto typeface : m_private->typefaces) {
|
||||
if (typeface->family() == family && typeface->weight() == weight)
|
||||
return typeface->get_font(size);
|
||||
|
||||
Reference in New Issue
Block a user