mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
LibDraw: Put all classes in the Gfx namespace
I started adding things to a Draw namespace, but it somehow felt really wrong seeing Draw::Rect and Draw::Bitmap, etc. So instead, let's rename the library to LibGfx. :^)
This commit is contained in:
parent
939a605334
commit
11580babbf
Notes:
sideshowbarker
2024-07-19 09:35:13 +09:00
Author: https://github.com/awesomekling
Commit: 11580babbf
269 changed files with 1513 additions and 1315 deletions
|
@ -136,9 +136,9 @@ void StyleProperties::load_font() const
|
|||
dbg() << "Failed to find a font for family " << font_family << " weight " << font_weight;
|
||||
|
||||
if (font_weight == "bold")
|
||||
m_font = Font::default_bold_font();
|
||||
m_font = Gfx::Font::default_bold_font();
|
||||
else
|
||||
m_font = Font::default_font();
|
||||
m_font = Gfx::Font::default_font();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,7 @@ void StyleProperties::load_font() const
|
|||
dbg() << "Found font " << file_name << " for family " << font_family << " weight " << font_weight;
|
||||
#endif
|
||||
|
||||
m_font = Font::load_from_file(String::format("/res/fonts/%s", file_name.characters()));
|
||||
m_font = Gfx::Font::load_from_file(String::format("/res/fonts/%s", file_name.characters()));
|
||||
FontCache::the().set({ font_family, font_weight }, *m_font);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue