mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
IRC client setttings, Terminal settings, more WM settings
This commit is contained in:
parent
63486b8438
commit
e3f81bce49
13 changed files with 89 additions and 53 deletions
|
@ -6,6 +6,12 @@
|
|||
|
||||
class Font;
|
||||
|
||||
struct Metadata {
|
||||
String path;
|
||||
bool is_fixed_width;
|
||||
int glyph_height;
|
||||
};
|
||||
|
||||
class GFontDatabase {
|
||||
public:
|
||||
static GFontDatabase& the();
|
||||
|
@ -14,15 +20,13 @@ public:
|
|||
void for_each_font(Function<void(const String&)>);
|
||||
void for_each_fixed_width_font(Function<void(const String&)>);
|
||||
|
||||
Metadata get_metadata_by_name(const String& name) const {
|
||||
return m_name_to_metadata.get(name);
|
||||
};
|
||||
|
||||
private:
|
||||
GFontDatabase();
|
||||
~GFontDatabase();
|
||||
|
||||
struct Metadata {
|
||||
String path;
|
||||
bool is_fixed_width;
|
||||
int glyph_height;
|
||||
};
|
||||
|
||||
HashMap<String, Metadata> m_name_to_metadata;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue