mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 23:07:35 +00:00
Userland+Tests: Remove uses of direct file loading for BitmapFont
Route them through Core::Resource APIs instead.
This commit is contained in:
parent
d587bd0a04
commit
1567332e34
6 changed files with 28 additions and 26 deletions
|
@ -56,7 +56,7 @@ ColorLines::ColorLines(StringView app_name)
|
|||
, m_board { make<MarbleBoard>() }
|
||||
, m_marble_bitmaps { build_marble_color_bitmaps() }
|
||||
, m_trace_bitmaps { build_marble_trace_bitmaps() }
|
||||
, m_score_font { Gfx::BitmapFont::load_from_file("/res/fonts/MarietaBold24.font") }
|
||||
, m_score_font { Gfx::BitmapFont::load_from_uri("resource://fonts/MarietaBold24.font"sv) }
|
||||
{
|
||||
VERIFY(m_marble_bitmaps.size() == Marble::number_of_colors);
|
||||
set_font(Gfx::FontDatabase::default_fixed_width_font().bold_variant());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue