Skip to content

Commit 13cf364

Browse files
committed
add Monoton subset font derivative
released under SIL OFL license, documented in thirdparty directory of the repository
1 parent 15b5023 commit 13cf364

File tree

4 files changed

+304
-0
lines changed

4 files changed

+304
-0
lines changed
2.2 KB
Binary file not shown.

src/resources/fonts/OFL.txt

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
Copyright (c) 2011 by vernon adams ([email protected]),
2+
with Reserved Font Names "Monoton"
3+
4+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
5+
This license is copied below, and is also available with a FAQ at:
6+
http://scripts.sil.org/OFL
7+
8+
9+
-----------------------------------------------------------
10+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11+
-----------------------------------------------------------
12+
13+
PREAMBLE
14+
The goals of the Open Font License (OFL) are to stimulate worldwide
15+
development of collaborative font projects, to support the font creation
16+
efforts of academic and linguistic communities, and to provide a free and
17+
open framework in which fonts may be shared and improved in partnership
18+
with others.
19+
20+
The OFL allows the licensed fonts to be used, studied, modified and
21+
redistributed freely as long as they are not sold by themselves. The
22+
fonts, including any derivative works, can be bundled, embedded,
23+
redistributed and/or sold with any software provided that any reserved
24+
names are not used by derivative works. The fonts and derivatives,
25+
however, cannot be released under any other type of license. The
26+
requirement for fonts to remain under this license does not apply
27+
to any document created using the fonts or their derivatives.
28+
29+
DEFINITIONS
30+
"Font Software" refers to the set of files released by the Copyright
31+
Holder(s) under this license and clearly marked as such. This may
32+
include source files, build scripts and documentation.
33+
34+
"Reserved Font Name" refers to any names specified as such after the
35+
copyright statement(s).
36+
37+
"Original Version" refers to the collection of Font Software components as
38+
distributed by the Copyright Holder(s).
39+
40+
"Modified Version" refers to any derivative made by adding to, deleting,
41+
or substituting -- in part or in whole -- any of the components of the
42+
Original Version, by changing formats or by porting the Font Software to a
43+
new environment.
44+
45+
"Author" refers to any designer, engineer, programmer, technical
46+
writer or other person who contributed to the Font Software.
47+
48+
PERMISSION & CONDITIONS
49+
Permission is hereby granted, free of charge, to any person obtaining
50+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
51+
redistribute, and sell modified and unmodified copies of the Font
52+
Software, subject to the following conditions:
53+
54+
1) Neither the Font Software nor any of its individual components,
55+
in Original or Modified Versions, may be sold by itself.
56+
57+
2) Original or Modified Versions of the Font Software may be bundled,
58+
redistributed and/or sold with any software, provided that each copy
59+
contains the above copyright notice and this license. These can be
60+
included either as stand-alone text files, human-readable headers or
61+
in the appropriate machine-readable metadata fields within text or
62+
binary files as long as those fields can be easily viewed by the user.
63+
64+
3) No Modified Version of the Font Software may use the Reserved Font
65+
Name(s) unless explicit written permission is granted by the corresponding
66+
Copyright Holder. This restriction only applies to the primary font name as
67+
presented to the users.
68+
69+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70+
Software shall not be used to promote, endorse or advertise any
71+
Modified Version, except to acknowledge the contribution(s) of the
72+
Copyright Holder(s) and the Author(s) or with their explicit written
73+
permission.
74+
75+
5) The Font Software, modified or unmodified, in part or in whole,
76+
must be distributed entirely under this license, and must not be
77+
distributed under any other license. The requirement for fonts to
78+
remain under this license does not apply to any document created
79+
using the Font Software.
80+
81+
TERMINATION
82+
This license becomes null and void if any of the above conditions are
83+
not met.
84+
85+
DISCLAIMER
86+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
88+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
89+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
90+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
91+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
92+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
94+
OTHER DEALINGS IN THE FONT SOFTWARE.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<RCC>
2+
<qresource prefix="font">
3+
<file>Monoton-Regular.subset.ttf</file>
4+
</qresource>
5+
</RCC>

src/slice/fontresources.py

Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
# -*- coding: utf-8 -*-
2+
3+
# Resource object code
4+
#
5+
# Created by: The Resource Compiler for PyQt5 (Qt v5.15.2)
6+
#
7+
# WARNING! All changes made in this file will be lost!
8+
9+
from PyQt5 import QtCore
10+
11+
qt_resource_data = b"\
12+
\x00\x00\x08\xc8\
13+
\x00\
14+
\x01\x00\x00\x00\x0f\x00\x80\x00\x03\x00\x70\x47\x44\x45\x46\x00\
15+
\x11\x00\x09\x00\x00\x08\x84\x00\x00\x00\x16\x47\x50\x4f\x53\x00\
16+
\x19\x00\x0c\x00\x00\x08\x9c\x00\x00\x00\x10\x47\x53\x55\x42\x6c\
17+
\x8c\x74\x85\x00\x00\x08\xac\x00\x00\x00\x1a\x4f\x53\x2f\x32\x9c\
18+
\xd6\x8a\xd1\x00\x00\x05\x84\x00\x00\x00\x60\x63\x6d\x61\x70\x00\
19+
\xf8\x01\xc7\x00\x00\x05\xe4\x00\x00\x00\x54\x67\x61\x73\x70\xff\
20+
\xff\x00\x04\x00\x00\x08\x7c\x00\x00\x00\x08\x67\x6c\x79\x66\x4e\
21+
\x33\x63\x6c\x00\x00\x00\xfc\x00\x00\x03\xd2\x68\x65\x61\x64\x00\
22+
\x61\x2c\x6b\x00\x00\x05\x04\x00\x00\x00\x36\x68\x68\x65\x61\x15\
23+
\x9a\x09\x81\x00\x00\x05\x60\x00\x00\x00\x24\x68\x6d\x74\x78\x1b\
24+
\x88\x01\x7a\x00\x00\x05\x3c\x00\x00\x00\x24\x6c\x6f\x63\x61\x02\
25+
\x33\x03\xa5\x00\x00\x04\xf0\x00\x00\x00\x14\x6d\x61\x78\x70\x00\
26+
\x7a\x01\xd0\x00\x00\x04\xd0\x00\x00\x00\x20\x6e\x61\x6d\x65\x26\
27+
\x2d\x4a\x86\x00\x00\x06\x40\x00\x00\x01\xee\x70\x6f\x73\x74\xc4\
28+
\x69\xe8\x04\x00\x00\x08\x30\x00\x00\x00\x4b\x70\x72\x65\x70\x68\
29+
\x06\x8c\x85\x00\x00\x06\x38\x00\x00\x00\x07\x00\x04\x00\x37\xff\
30+
\xb8\x05\xba\x05\xe8\x00\x16\x00\x30\x00\x50\x00\x70\x00\x00\x01\
31+
\x07\x26\x23\x22\x06\x14\x16\x33\x32\x36\x37\x17\x0e\x01\x23\x22\
32+
\x26\x10\x36\x33\x32\x16\x37\x07\x2e\x01\x23\x22\x06\x10\x16\x33\
33+
\x32\x36\x37\x17\x0e\x01\x23\x22\x2e\x01\x10\x3e\x01\x33\x32\x16\
34+
\x37\x07\x2e\x01\x23\x22\x0e\x02\x14\x1e\x02\x33\x32\x36\x37\x17\
35+
\x06\x04\x23\x22\x2e\x02\x10\x3e\x02\x33\x32\x04\x17\x07\x26\x24\
36+
\x23\x22\x04\x06\x02\x10\x12\x16\x04\x33\x32\x24\x37\x17\x06\x04\
37+
\x23\x22\x24\x26\x02\x10\x12\x36\x24\x33\x32\x04\x04\x69\x3a\x57\
38+
\x89\x77\xa9\xa9\x77\x43\x75\x29\x38\x32\x94\x53\x95\xd3\xd3\x95\
39+
\x54\x94\xa2\x39\x3c\xb1\x64\xb3\xfd\xfd\xb3\x64\xb2\x3c\x37\x46\
40+
\xce\x75\x89\xe8\x87\x87\xe8\x89\x75\xcf\xb7\x38\x51\xec\x86\x75\
41+
\xd5\x9b\x5b\x5b\x9b\xd5\x75\x86\xec\x51\x36\x5b\xfe\xf8\x96\x84\
42+
\xf0\xad\x67\x67\xad\xf0\x84\x97\x01\x09\xcb\x3a\x65\xfe\xdb\xa7\
43+
\x92\xfe\xf5\xc1\x72\x72\xc1\x01\x0b\x92\xa7\x01\x25\x65\x39\x6f\
44+
\xfe\xbd\xb8\xa1\xfe\xdb\xd4\x7e\x7e\xd4\x01\x25\xa1\xb8\x01\x44\
45+
\x03\xb0\x2c\x6c\xa9\xee\xa9\x3a\x33\x2f\x3f\x47\xd3\x01\x2a\xd3\
46+
\x49\x1b\x2c\x4c\x56\xfe\xfe\x9c\xfe\x57\x4c\x2e\x58\x65\x87\xe8\
47+
\x01\x12\xe8\x87\x65\x01\x2d\x65\x74\x5b\x9b\xd5\xea\xd5\x9b\x5b\
48+
\x74\x65\x2f\x71\x81\x67\xad\xf0\x01\x08\xf0\xad\x67\x82\x18\x2b\
49+
\x7d\x90\x72\xc1\xfe\xf5\xfe\xdc\xfe\xf5\xc1\x72\x90\x7d\x2c\x8a\
50+
\x9f\x7e\xd4\x01\x25\x01\x42\x01\x25\xd4\x7e\x9f\x00\x00\x04\x00\
51+
\x5d\x00\x00\x05\x06\x05\xa0\x00\x03\x00\x07\x00\x0b\x00\x2f\x00\
52+
\x00\x21\x23\x11\x33\x03\x23\x11\x33\x03\x23\x11\x33\x01\x21\x15\
53+
\x21\x15\x21\x15\x21\x15\x21\x15\x21\x11\x21\x15\x21\x15\x21\x15\
54+
\x21\x15\x21\x15\x21\x15\x21\x15\x21\x15\x21\x15\x21\x15\x21\x15\
55+
\x21\x01\xc5\x48\x48\x90\x48\x48\x90\x48\x48\x01\xb0\x02\xb1\xfd\
56+
\x4f\x02\xb1\xfd\x4f\x02\xb1\xfd\x07\x02\xf9\xfd\x4f\x02\xb1\xfd\
57+
\x4f\x02\xb1\xfd\x4f\x02\x89\xfd\x77\x02\x89\xfd\x77\x02\x89\xfd\
58+
\x77\x05\xa0\xfa\x60\x05\xa0\xfa\x60\x05\xa0\xfb\xc8\x48\x48\x48\
59+
\x48\x48\x05\xa0\x48\x48\x48\x48\x48\xb3\x48\x48\x48\x48\x48\x00\
60+
\x04\x00\x5d\x00\x00\x02\x55\x05\xa0\x00\x03\x00\x07\x00\x0b\x00\
61+
\x0f\x00\x00\x01\x33\x11\x23\x03\x33\x11\x23\x03\x33\x11\x23\x03\
62+
\x33\x11\x23\x02\x0d\x48\x48\x90\x48\x48\x90\x48\x48\x90\x48\x48\
63+
\x05\xa0\xfa\x60\x05\xa0\xfa\x60\x05\xa0\xfa\x60\x05\xa0\xfa\x60\
64+
\x00\x00\x04\x00\x5d\x00\x00\x04\x68\x05\xa0\x00\x03\x00\x11\x00\
65+
\x15\x00\x19\x00\x00\x13\x33\x11\x23\x01\x33\x11\x21\x15\x21\x15\
66+
\x21\x15\x21\x15\x21\x15\x21\x03\x33\x11\x23\x03\x33\x11\x23\x5d\
67+
\x48\x48\x01\xb0\x48\x02\x13\xfd\xed\x02\x13\xfd\xed\x02\x13\xfd\
68+
\xa5\x90\x48\x48\x90\x48\x48\x05\xa0\xfa\x60\x05\xa0\xfb\xc8\x48\
69+
\x48\x48\x48\x48\x05\xa0\xfa\x60\x05\xa0\xfa\x60\x00\x00\x03\x00\
70+
\x2c\xff\xdd\x05\x48\x05\xc5\x00\x27\x00\x4f\x00\x77\x00\x00\x01\
71+
\x23\x22\x26\x35\x34\x24\x33\x32\x04\x17\x07\x2e\x01\x23\x22\x06\
72+
\x15\x14\x16\x3b\x01\x32\x16\x15\x14\x04\x23\x22\x24\x27\x37\x1e\
73+
\x01\x33\x32\x36\x35\x34\x26\x07\x23\x20\x24\x35\x34\x3e\x02\x33\
74+
\x32\x04\x17\x07\x26\x24\x23\x20\x04\x15\x14\x04\x3b\x01\x20\x15\
75+
\x14\x06\x23\x22\x26\x27\x37\x16\x33\x32\x36\x35\x34\x26\x03\x23\
76+
\x20\x35\x34\x36\x33\x32\x16\x17\x07\x26\x23\x22\x06\x15\x14\x16\
77+
\x3b\x01\x20\x04\x15\x14\x0e\x02\x23\x22\x24\x27\x37\x16\x04\x33\
78+
\x20\x24\x35\x34\x24\x02\xf3\x72\xd2\xe2\x01\x0a\xf0\xa0\x01\x15\
79+
\x5c\x38\x52\xf8\x8f\xd3\xdf\xb7\xb5\x6e\xd5\xe3\xfe\xf6\xf0\xa0\
80+
\xfe\xeb\x5c\x38\x52\xf8\x8f\xd3\xdf\xb7\xb5\x72\xfe\xea\xfe\xd2\
81+
\x56\xa1\xfa\x99\xc1\x01\x50\x70\x3a\x66\xfe\xce\xaf\xfe\xf2\xfe\
82+
\xcc\x01\x08\xf4\x6e\x01\x28\xb5\xb5\x7f\xda\x47\x39\x7d\xea\x96\
83+
\x8c\x62\x7a\x72\xfe\xdc\xb5\xb5\x7f\xda\x47\x39\x7d\xea\x96\x8c\
84+
\x62\x7a\x72\x01\x16\x01\x2e\x56\xa1\xfa\x99\xc1\xfe\xb0\x70\x3a\
85+
\x66\x01\x32\xaf\x01\x0e\x01\x34\xfe\xf8\x02\xad\xab\x96\x8c\xbb\
86+
\x58\x50\x2d\x43\x4a\x90\x6f\x78\x81\xab\x96\x8c\xbb\x58\x50\x2d\
87+
\x43\x4a\x90\x6f\x78\x81\x90\xfd\xd4\x61\xaa\x81\x4b\x75\x69\x2b\
88+
\x5c\x65\xe4\xab\xb5\xd4\xb1\x50\x67\x3b\x37\x2c\x56\x3e\x31\x39\
89+
\x30\x01\x20\xb1\x50\x67\x3b\x37\x2c\x56\x3e\x31\x39\x30\xfd\xd4\
90+
\x61\xaa\x81\x4b\x75\x69\x2b\x5c\x65\xe4\xab\xb5\xd4\x00\x00\x00\
91+
\x01\x00\x00\x00\x09\x00\xe7\x00\x18\x00\xe4\x00\x15\x00\x02\x00\
92+
\x00\x00\x01\x00\x01\x00\x00\x00\x40\x00\x00\x00\x02\x00\x02\x00\
93+
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa9\x00\xf2\x01\x13\x01\
94+
\x41\x01\xe9\x00\x01\x00\x00\x00\x01\x00\x00\x38\xcc\xc4\x94\x5f\
95+
\x0f\x3c\xf5\x00\x0b\x08\x00\x00\x00\x00\x00\xca\x74\x70\xb3\x00\
96+
\x00\x00\x00\xca\x74\x70\xb3\xfe\xbd\xfc\xca\x0d\x9c\x09\x3e\x00\
97+
\x00\x00\x08\x00\x02\x00\x00\x00\x00\x00\x00\x00\xde\x00\x00\x00\
98+
\xde\x00\x00\x00\xde\x00\x00\x00\xde\x00\x00\x05\xe5\x00\x37\x05\
99+
\x56\x00\x5d\x02\xb4\x00\x5d\x04\xaa\x00\x5d\x05\x77\x00\x2c\x00\
100+
\x01\x00\x00\x09\x3e\xfc\xca\x00\x00\x0d\xed\xfe\xbd\xfe\xc0\x0d\
101+
\x9c\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
102+
\x00\x00\x09\x00\x03\x05\x72\x01\x90\x00\x05\x00\x00\x05\x33\x04\
103+
\xcc\x00\x00\x00\x99\x05\x33\x04\xcc\x00\x00\x02\xcc\x00\x32\x03\
104+
\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
105+
\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x6e\x65\x77\
106+
\x74\x00\x40\x00\x63\x00\x73\x09\x3e\xfc\xca\x00\x00\x09\x3e\x03\
107+
\x36\x00\x00\x00\x01\x00\x00\x00\x00\x05\xa0\x06\x78\x00\x00\x00\
108+
\x20\x00\x02\x00\x00\x00\x02\x00\x00\x00\x03\x00\x00\x00\x14\x00\
109+
\x03\x00\x01\x00\x00\x00\x14\x00\x04\x00\x40\x00\x00\x00\x0c\x00\
110+
\x08\x00\x02\x00\x04\x00\x63\x00\x65\x00\x69\x00\x6c\x00\x73\xff\
111+
\xff\x00\x00\x00\x63\x00\x65\x00\x69\x00\x6c\x00\x73\xff\xff\xff\
112+
\xa1\xff\xa0\xff\x9d\xff\x9b\xff\x95\x00\x01\x00\x00\x00\x00\x00\
113+
\x00\x00\x00\x00\x00\x00\x00\xb8\x01\xff\x85\xb0\x04\x8d\x00\x00\
114+
\x00\x00\x0a\x00\x7e\x00\x03\x00\x01\x04\x09\x00\x00\x00\x70\x00\
115+
\x00\x00\x03\x00\x01\x04\x09\x00\x01\x00\x0e\x00\x70\x00\x03\x00\
116+
\x01\x04\x09\x00\x02\x00\x0e\x00\x7e\x00\x03\x00\x01\x04\x09\x00\
117+
\x03\x00\x46\x00\x8c\x00\x03\x00\x01\x04\x09\x00\x04\x00\x0e\x00\
118+
\x70\x00\x03\x00\x01\x04\x09\x00\x05\x00\x1a\x00\xd2\x00\x03\x00\
119+
\x01\x04\x09\x00\x06\x00\x1e\x00\xec\x00\x03\x00\x01\x04\x09\x00\
120+
\x07\x00\x4e\x01\x0a\x00\x03\x00\x01\x04\x09\x00\x08\x00\x18\x01\
121+
\x58\x00\x03\x00\x01\x04\x09\x00\x0a\x00\x70\x00\x00\x00\x43\x00\
122+
\x6f\x00\x70\x00\x79\x00\x72\x00\x69\x00\x67\x00\x68\x00\x74\x00\
123+
\x20\x00\x28\x00\x63\x00\x29\x00\x20\x00\x32\x00\x30\x00\x31\x00\
124+
\x31\x00\x20\x00\x62\x00\x79\x00\x20\x00\x76\x00\x65\x00\x72\x00\
125+
\x6e\x00\x6f\x00\x6e\x00\x20\x00\x61\x00\x64\x00\x61\x00\x6d\x00\
126+
\x73\x00\x2e\x00\x20\x00\x41\x00\x6c\x00\x6c\x00\x20\x00\x72\x00\
127+
\x69\x00\x67\x00\x68\x00\x74\x00\x73\x00\x20\x00\x72\x00\x65\x00\
128+
\x73\x00\x65\x00\x72\x00\x76\x00\x65\x00\x64\x00\x2e\x00\x4d\x00\
129+
\x6f\x00\x6e\x00\x6f\x00\x74\x00\x6f\x00\x6e\x00\x52\x00\x65\x00\
130+
\x67\x00\x75\x00\x6c\x00\x61\x00\x72\x00\x46\x00\x6f\x00\x6e\x00\
131+
\x74\x00\x46\x00\x6f\x00\x72\x00\x67\x00\x65\x00\x20\x00\x32\x00\
132+
\x2e\x00\x30\x00\x20\x00\x3a\x00\x20\x00\x4d\x00\x6f\x00\x6e\x00\
133+
\x6f\x00\x74\x00\x6f\x00\x6e\x00\x20\x00\x3a\x00\x20\x00\x31\x00\
134+
\x39\x00\x2d\x00\x38\x00\x2d\x00\x32\x00\x30\x00\x31\x00\x31\x00\
135+
\x56\x00\x65\x00\x72\x00\x73\x00\x69\x00\x6f\x00\x6e\x00\x20\x00\
136+
\x31\x00\x2e\x00\x30\x00\x30\x00\x30\x00\x4d\x00\x6f\x00\x6e\x00\
137+
\x6f\x00\x74\x00\x6f\x00\x6e\x00\x2d\x00\x52\x00\x65\x00\x67\x00\
138+
\x75\x00\x6c\x00\x61\x00\x72\x00\x4d\x00\x6f\x00\x6e\x00\x6f\x00\
139+
\x74\x00\x6f\x00\x6e\x00\x20\x00\x69\x00\x73\x00\x20\x00\x61\x00\
140+
\x20\x00\x74\x00\x72\x00\x61\x00\x64\x00\x65\x00\x6d\x00\x61\x00\
141+
\x72\x00\x6b\x00\x20\x00\x6f\x00\x66\x00\x20\x00\x76\x00\x65\x00\
142+
\x72\x00\x6e\x00\x6f\x00\x6e\x00\x20\x00\x61\x00\x64\x00\x61\x00\
143+
\x6d\x00\x73\x00\x2e\x00\x76\x00\x65\x00\x72\x00\x6e\x00\x6f\x00\
144+
\x6e\x00\x20\x00\x61\x00\x64\x00\x61\x00\x6d\x00\x73\x00\x00\x00\
145+
\x02\x00\x00\x00\x00\x00\x00\xff\xb5\x00\x32\x00\x00\x00\x00\x00\
146+
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
147+
\x09\x00\x00\x01\x02\x01\x03\x01\x04\x00\x46\x00\x48\x00\x4c\x00\
148+
\x4f\x00\x56\x06\x67\x6c\x79\x70\x68\x31\x07\x75\x6e\x69\x30\x30\
149+
\x30\x44\x07\x75\x6e\x69\x30\x30\x30\x32\x00\x00\x00\x00\x01\xff\
150+
\xff\x00\x03\x00\x01\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\
151+
\x02\x00\x01\x00\x01\x00\x08\x00\x01\x00\x00\x00\x01\x00\x00\x00\
152+
\x0a\x00\x0c\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\
153+
\x0a\x00\x16\x00\x18\x00\x01\x6c\x61\x74\x6e\x00\x08\x00\x00\x00\
154+
\x00\x00\x00\x00\x00\x00\x00\
155+
"
156+
157+
qt_resource_name = b"\
158+
\x00\x04\
159+
\x00\x06\xd6\x54\
160+
\x00\x66\
161+
\x00\x6f\x00\x6e\x00\x74\
162+
\x00\x1a\
163+
\x01\xf5\xb8\xc6\
164+
\x00\x4d\
165+
\x00\x6f\x00\x6e\x00\x6f\x00\x74\x00\x6f\x00\x6e\x00\x2d\x00\x52\x00\x65\x00\x67\x00\x75\x00\x6c\x00\x61\x00\x72\x00\x2e\x00\x73\
166+
\x00\x75\x00\x62\x00\x73\x00\x65\x00\x74\x00\x2e\x00\x74\x00\x74\x00\x66\
167+
"
168+
169+
qt_resource_struct_v1 = b"\
170+
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
171+
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
172+
\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
173+
"
174+
175+
qt_resource_struct_v2 = b"\
176+
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
177+
\x00\x00\x00\x00\x00\x00\x00\x00\
178+
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
179+
\x00\x00\x00\x00\x00\x00\x00\x00\
180+
\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
181+
\x00\x00\x01\x78\x43\x3c\x78\xc0\
182+
"
183+
184+
qt_version = [int(v) for v in QtCore.qVersion().split(".")]
185+
if qt_version < [5, 8, 0]:
186+
rcc_version = 1
187+
qt_resource_struct = qt_resource_struct_v1
188+
else:
189+
rcc_version = 2
190+
qt_resource_struct = qt_resource_struct_v2
191+
192+
193+
def qInitResources():
194+
QtCore.qRegisterResourceData(
195+
rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data
196+
)
197+
198+
199+
def qCleanupResources():
200+
QtCore.qUnregisterResourceData(
201+
rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data
202+
)
203+
204+
205+
qInitResources()

0 commit comments

Comments
 (0)