mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibGfx: Introduce with_size method for Font
This commit is contained in:
committed by
Linus Groh
parent
d910dd345e
commit
1cc8895e4b
Notes:
sideshowbarker
2024-07-17 00:30:43 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/1cc8895e4b Pull-request: https://github.com/SerenityOS/serenity/pull/17382 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/linusg ✅
@@ -381,6 +381,11 @@ DeprecatedString BitmapFont::variant() const
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
RefPtr<Font> BitmapFont::with_size(float point_size) const
|
||||
{
|
||||
return Gfx::FontDatabase::the().get(family(), point_size, weight(), width(), slope());
|
||||
}
|
||||
|
||||
Font const& Font::bold_variant() const
|
||||
{
|
||||
if (m_bold_variant)
|
||||
|
||||
Reference in New Issue
Block a user