| 1 |
Fromscip-debian debian fonts-oldstandard 2.2really-4 fonts-oldstandard/patches/`0001-ost-generate.py-Make-python3-compatible.patch`#From.: Boyuan Yang <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Datescip-debian debian fonts-oldstandard 2.2really-4 fonts-oldstandard/patches/`0001-ost-generate.py-Make-python3-compatible.patch`#Date.: Mon, 25 May 2020 20:26:33 -0400 |
| 3 |
Subjectscip-debian debian fonts-oldstandard 2.2really-4 fonts-oldstandard/patches/`0001-ost-generate.py-Make-python3-compatible.patch`#Subject.: ost-generate.py: Make python3-compatible |
| 4 |
|
| 5 |
--- |
| 6 |
ost-generate.py | 8 ++++---- |
| 7 |
1 file changed, 4 insertions(+), 4 deletions(-) |
| 8 |
|
| 9 |
diff --git a/ost-generate.pyscip-debian debian fonts-oldstandard 2.2really-4 fonts-oldstandard/upstream/`ost-generate.py`: b/ost-generate.pyscip-debian debian fonts-oldstandard 2.2really-4 fonts-oldstandard/upstream/`ost-generate.py`: |
| 10 |
index d95b7c0..a6b488d 100644 |
| 11 |
--- a/ost-generate.py |
| 12 |
+++ b/ost-generate.py |
| 13 |
@@ -34,8 +34,8 @@ def process_font(name, fname, style): |
| 14 |
# there is no reason to store them directly in the file |
| 15 |
ttnames = list( font.sfnt_names ) |
| 16 |
for ttname in ttnames: |
| 17 |
|
| 18 |
|
| 19 |
+ if ttname[1] == 'SubFamily': |
| 20 |
+ ttnames.append( ( ttname[0],'Fullname',"%s %s" % ( fname,ttname[2] ) ) ) |
| 21 |
font.sfnt_names = tuple( ttnames ) |
| 22 |
|
| 23 |
font.gasp_version = 1 |
| 24 |
@@ -47,7 +47,7 @@ def process_font(name, fname, style): |
| 25 |
font.generate( filename + ".otf",flags=( "opentype","PfEd-colors","PfEd-lookups" ),layer="Fore" ) |
| 26 |
|
| 27 |
woff_meta = base_name + "-WOFF-metadata.xml" |
| 28 |
|
| 29 |
+ f = open( woff_meta,'r' ) |
| 30 |
lines = f.readlines() |
| 31 |
f.close() |
| 32 |
font.woffMetadata = "".join( lines ) |
| 33 |
@@ -56,7 +56,7 @@ def process_font(name, fname, style): |
| 34 |
# Append the 'TT' suffix to various font names, including localized entries |
| 35 |
for i in range( 0,len( ttnames )): |
| 36 |
ttname = ttnames[i] |
| 37 |
|
| 38 |
+ if ttname[1] == 'Fullname': |
| 39 |
ttnames[i] = ( ttname[0],'Fullname',ttname[2].replace( fname,fname + " TT" ) ) |
| 40 |
font.sfnt_names = tuple( ttnames ) |
| 41 |
font.familyname = fname + " TT" |