-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathFontSystem.qml
66 lines (52 loc) · 1.63 KB
/
FontSystem.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
pragma Singleton
import QtQuick 2.9
import QtQuick.Controls 2.5
Item {
property var getAwesomeBrand: fontAwesomeBrand
property var getAwesomeRegular: fontAwesomeRegular
property var getAwesomeLight: fontAwesomeLight
property var getAwesomeSolid: fontAwesomeSolid
property var getContentFont: contentFontMedium
property var getContentFontBold: contentFontBold
property var getContentFontMedium: contentFontMedium
property var getContentFontLight: contentFontLight
property var getFontSize: fontSize
QtObject {
id: fontSize
readonly property int h1 : 32
readonly property int h2 : 24
readonly property double h3 : 18.72
readonly property int h4 : 16
readonly property double h5 : 13.28
readonly property double h6 : 10.72
readonly property int content : 14
}
FontLoader {
id: fontAwesomeBrand
source: "qrc:/fonts/Font Awesome 5 Brands-Regular-400.otf"
}
FontLoader {
id: fontAwesomeRegular
source: "qrc:/fonts/Font Awesome 5 Pro-Regular-400.otf"
}
FontLoader {
id: fontAwesomeLight
source: "qrc:/fonts/Font Awesome 5 Pro-Light-300.otf"
}
FontLoader {
id: fontAwesomeSolid
source: "qrc:/fonts/Font Awesome 5 Pro-Solid-900.otf"
}
FontLoader {
id: contentFontLight
source: "qrc:/fonts/Nunito-Light.ttf"
}
FontLoader {
id: contentFontBold
source: "qrc:/fonts/Nunito-Bold.ttf"
}
FontLoader {
id: contentFontMedium
source: "qrc:/fonts/Nunito-Medium.ttf"
}
}