feat: allow custom chat font weight (#6037)

This commit is contained in:
nerix
2025-03-07 20:19:24 +01:00
committed by GitHub
parent 0235451c56
commit 266dc8d202
5 changed files with 141 additions and 74 deletions
+2 -3
View File
@@ -63,18 +63,17 @@ private:
struct ChatFontData {
float scale;
bool italic;
QFont::Weight weight;
};
struct UiFontData {
float size;
const char *name;
bool italic;
QFont::Weight weight;
int weight;
};
FontData &getOrCreateFontData(FontStyle type, float scale);
FontData createFontData(FontStyle type, float scale);
static FontData createFontData(FontStyle type, float scale);
std::vector<std::unordered_map<float, FontData>> fontsByType_;