Codechange: [windows] cache the actually loaded font name

This commit is contained in:
glx22
2022-12-22 19:50:05 +01:00
committed by Loïc Guilloux
parent af3df959c2
commit e6c857cdba
2 changed files with 4 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ private:
HDC dc = nullptr; ///< Cached GDI device context.
HGDIOBJ old_font; ///< Old font selected into the GDI context.
SIZE glyph_size; ///< Maximum size of regular glyphs.
std::string fontname; ///< Cached copy of this->logfont.lfFaceName
std::string fontname; ///< Cached copy of loaded font facename
void SetFontSize(FontSize fs, int pixels);