-
Notifications
You must be signed in to change notification settings - Fork 0
/
FontSystem.qml
49 lines (38 loc) · 1.26 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
// Copyright (C) 2022 The Genyleap.
// Copyright (C) 2022 Kambiz Asadzadeh
// SPDX-License-Identifier: LGPL-3.0-only
import QtQuick
Item {
property var getAwesomeRegular: fontAwesomeRegular
property var getAwesomeSolid: fontAwesomeSolid
property var getContentFont: contentFontRegular
property var getContentFontLight: contentFontLight
property var getContentFontBold: contentFontBold
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: fontAwesomeRegular
source: "qrc:/resources/fonts/Font Awesome 5 Free-Regular-400.otf"
}
FontLoader {
id: fontAwesomeSolid
source: "qrc:/resources/fonts/Font Awesome 5 Free-Solid-900.otf"
}
FontLoader {
id: contentFontLight
source: "qrc:/resources/fonts/Nunito-Light.ttf"
}
FontLoader {
id: contentFontBold
source: "qrc:/resources/fonts/Nunito-Bold.ttf"
}
FontLoader {
id: contentFontRegular
source: "qrc:/resources/fonts/Nunito-Regular.ttf"
}
}