mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-31 02:01:19 +00:00
Fix: fonts are now working
This commit is contained in:
parent
926ce767f8
commit
13377ba4e7
@ -39,7 +39,7 @@ Item{
|
|||||||
property int frames_index: 2
|
property int frames_index: 2
|
||||||
property var frames_list: framelist
|
property var frames_list: framelist
|
||||||
|
|
||||||
property real font_scaling: 1.0
|
property real font_scaling: 0.7
|
||||||
property var font: currentfont
|
property var font: currentfont
|
||||||
property real fontSize: currentfont.pixelSize * font_scaling
|
property real fontSize: currentfont.pixelSize * font_scaling
|
||||||
property int font_index: 0
|
property int font_index: 0
|
||||||
@ -79,17 +79,17 @@ Item{
|
|||||||
}
|
}
|
||||||
ListElement{
|
ListElement{
|
||||||
text: "Atari 8bit (1979)"
|
text: "Atari 8bit (1979)"
|
||||||
source: "./fonts/Atari8bit/ATARI400800_original.TTF"
|
source: "fonts/Atari8bit/ATARI400800_original.TTF"
|
||||||
pixelSize: 20
|
pixelSize: 20
|
||||||
}
|
}
|
||||||
ListElement{
|
ListElement{
|
||||||
text: "Commodore 64 (1982)"
|
text: "Commodore 64 (1982)"
|
||||||
source: "./fonts/Commodore64/C64_User_Mono_v1.0-STYLE.ttf"
|
source: "fonts/Commodore64/C64_User_Mono_v1.0-STYLE.ttf"
|
||||||
pixelSize: 20
|
pixelSize: 20
|
||||||
}
|
}
|
||||||
ListElement{
|
ListElement{
|
||||||
text: "IBM DOS (1985)"
|
text: "IBM DOS (1985)"
|
||||||
source: "./fonts/Dos/Perfect DOS VGA 437.ttf"
|
source: "fonts/Dos/Perfect DOS VGA 437.ttf"
|
||||||
pixelSize: 32
|
pixelSize: 32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,8 +99,8 @@ ApplicationWindow{
|
|||||||
KTerminal {
|
KTerminal {
|
||||||
id: terminal
|
id: terminal
|
||||||
|
|
||||||
font.pointSize: 15
|
font.pointSize: shadersettings.fontSize
|
||||||
font.family: "Pet Me"
|
font.family: shadersettings.font.name
|
||||||
|
|
||||||
colorScheme: "WhiteOnBlack"
|
colorScheme: "WhiteOnBlack"
|
||||||
width: parent.width
|
width: parent.width
|
||||||
@ -116,9 +116,9 @@ ApplicationWindow{
|
|||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
font.pointSize = 15;
|
font.pointSize = shadersettings.fontSize;
|
||||||
font.family = "Pet Me";
|
font.family = shadersettings.font.name;
|
||||||
|
console.log(shadersettings.font.name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user