1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-18 08:54:15 +01:00

OP-1648 Only use one font for all PFD stuff

This commit is contained in:
Laurent Lalanne 2015-01-04 13:29:58 +01:00
parent 57b8014fa8
commit c1286eb56e
4 changed files with 3 additions and 9 deletions

View File

@ -24,11 +24,6 @@ Rectangle {
Item {
id: sceneItem
FontLoader {
id: pt_bold_narrow
source: "qrc:/pfdqml/fonts/PTN77F.ttf"
}
FontLoader {
id: pt_bold
source: "qrc:/pfdqml/fonts/PTS75F.ttf"

View File

@ -204,9 +204,9 @@ Item {
text: ["MANUAL","STAB 1","STAB 2", "STAB 3", "STAB 4", "STAB 5", "STAB 6", "POS HOLD", "COURSELOCK",
"POS ROAM", "HOME LEASH", "ABS POS", "RTB", "LAND", "PATHPLAN", "POI", "AUTOCRUISE"][FlightStatus.FlightMode]
font {
family: pt_bold_narrow.name
pixelSize: Math.floor(parent.height * 0.8)
weight: Font.Bold
family: pt_bold.name
pixelSize: Math.floor(parent.height * 0.74)
weight: Font.DemiBold
}
}
}

View File

@ -1,6 +1,5 @@
<RCC>
<qresource prefix="/pfdqml">
<file>fonts/PTN77F.ttf</file>
<file>fonts/PTS75F.ttf</file>
</qresource>
</RCC>