replaced qt font scaling
remove the qt font scaling and added code that uses the actual scale/dpi value
This commit is contained in:
+5
-3
@@ -30,8 +30,8 @@ public:
|
||||
return instance;
|
||||
}
|
||||
|
||||
QFont &getFont(Type type);
|
||||
QFontMetrics &getFontMetrics(Type type);
|
||||
QFont &getFont(Type type, float dpi);
|
||||
QFontMetrics &getFontMetrics(Type type, float dpi);
|
||||
|
||||
int getGeneration() const
|
||||
{
|
||||
@@ -122,10 +122,12 @@ private:
|
||||
FontData veryLarge;
|
||||
};
|
||||
|
||||
Font &getCurrentFont(float dpi);
|
||||
|
||||
// Future plans:
|
||||
// Could have multiple fonts in here, such as "Menu font", "Application font", "Chat font"
|
||||
|
||||
Font currentFont;
|
||||
std::list<std::pair<float, Font>> currentFontByDpi;
|
||||
|
||||
int generation = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user