1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-11-01 23:52:06 +00:00

Make the upscaled fonts really upscaled. (Faster expecially at high resolutions).

This commit is contained in:
Filippo Scognamiglio
2014-12-31 13:46:03 +01:00
parent a63135045e
commit a6952251de
5 changed files with 126 additions and 54 deletions

View File

@@ -81,6 +81,8 @@ QtObject{
property real fontScaling: 1.0
property real fontWidth: 1.0
property bool lowResolutionFont: false
property var fontNames: ["HERMIT", "COMMODORE_PET", "COMMODORE_PET"]
property var fontlist: fontManager.item.fontlist
@@ -135,6 +137,8 @@ QtObject{
var screenScaling = fontManager.item.screenScaling;
var fontWidth = fontManager.item.defaultFontWidth * appSettings.fontWidth;
lowResolutionFont = fontManager.item.lowResolutionFont;
terminalFontChanged(fontSource, pixelSize, lineSpacing, screenScaling, fontWidth);
}