1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

Add a bold variant of Katica and make that the system's default bold font.

..and do some minor tweaks to the font rendering code.
This commit is contained in:
Andreas Kling 2019-03-06 14:50:27 +01:00
parent 66a5ddd94a
commit 31d6b640eb
5 changed files with 10 additions and 5 deletions

View file

@ -54,7 +54,7 @@ public:
~Font();
GlyphBitmap glyph_bitmap(char ch) const { return GlyphBitmap(&m_rows[(byte)ch * m_glyph_height], { m_glyph_width, m_glyph_height }); }
GlyphBitmap glyph_bitmap(char ch) const { return GlyphBitmap(&m_rows[(byte)ch * m_glyph_height], { glyph_width(ch), m_glyph_height }); }
byte glyph_width(char ch) const { return m_fixed_width ? m_glyph_width : m_glyph_widths[(byte)ch]; }
byte glyph_height() const { return m_glyph_height; }