ui: Fixed font size in graph smaller on non MacOS systems

This commit is contained in:
Eberhard Graether
2015-11-26 00:13:58 +01:00
parent 6d8f733962
commit 9af08f4ff1
4 changed files with 20 additions and 1 deletions
+7 -1
View File
@@ -76,10 +76,16 @@ void GraphViewStyle::setImpl(std::shared_ptr<GraphViewStyleImpl> impl)
void GraphViewStyle::loadStyleSettings()
{
if (!s_impl)
{
return;
}
s_fontSize = 14;
s_fontName = ApplicationSettings::getInstance()->getFontName();
s_zoomFactor = ApplicationSettings::getInstance()->getFontSize() / float(s_fontSize);
float zoomDifference = getImpl()->getGraphViewZoomDifferenceForPlatform();
s_zoomFactor = (ApplicationSettings::getInstance()->getFontSize()) / float(s_fontSize) * zoomDifference;
s_charWidths.clear();
s_charHeights.clear();