Base: Rename Pebbleton to reflect actual height

And update programs loading it from file.
This commit is contained in:
thankyouverycool 2020-08-16 12:32:27 -04:00 committed by Andreas Kling
parent f025204dfe
commit 5558b2cf9f
Notes: sideshowbarker 2024-07-19 03:32:45 +09:00
4 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ int main(int argc, char** argv)
//
auto& header = background.add<GUI::Label>();
header.set_font(Gfx::Font::load_from_file("/res/fonts/PebbletonBold11.font"));
header.set_font(Gfx::Font::load_from_file("/res/fonts/PebbletonBold14.font"));
header.set_text("Welcome to SerenityOS!");
header.set_text_alignment(Gfx::TextAlignment::CenterLeft);
header.set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);

View File

@ -165,7 +165,7 @@ void Canvas::draw()
painter.draw_text({ 520, 450, 240, 20 }, "Normal text (fixed width)", Gfx::Font::default_fixed_width_font(), Gfx::TextAlignment::CenterLeft, Color::Blue);
painter.draw_text({ 520, 465, 240, 20 }, "Bold text (fixed width)", Gfx::Font::default_bold_fixed_width_font(), Gfx::TextAlignment::CenterLeft, Color::Yellow);
auto font = Gfx::Font::load_from_file("/res/fonts/PebbletonBold11.font");
auto font = Gfx::Font::load_from_file("/res/fonts/PebbletonBold14.font");
painter.draw_rect({ 520, 510, 240, 30 }, Color::DarkGray);
painter.draw_text({ 520, 510, 240, 30 }, "Hello friends! :^)", *font, Gfx::TextAlignment::Center, Color::White);