mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibVT: only use default bold font if it's the same size as our font
When the new font is a different size, just use that font for bold glyphs as well. It would be nice to find a matching bold version of the new font automatically in the future.
This commit is contained in:
committed by
Andreas Kling
parent
d4d17ce423
commit
24b8a27190
@@ -32,6 +32,8 @@ public:
|
||||
|
||||
void apply_size_increments_to_window(GWindow&);
|
||||
|
||||
const Font& bold_font() const { return *m_bold_font; }
|
||||
|
||||
void set_opacity(u8);
|
||||
float opacity() { return m_opacity; };
|
||||
bool should_beep() { return m_should_beep; }
|
||||
@@ -120,6 +122,8 @@ private:
|
||||
bool m_cursor_blink_state { true };
|
||||
bool m_automatic_size_policy { false };
|
||||
|
||||
RefPtr<Font> m_bold_font;
|
||||
|
||||
int m_glyph_width { 0 };
|
||||
|
||||
RefPtr<CTimer> m_cursor_blink_timer;
|
||||
|
||||
Reference in New Issue
Block a user