File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ def has_vdmx_table(tt):
6262
6363def is_truetype_font (filepath ):
6464 """Tests that a font has the TrueType file signature of either:
65- 1) b'\x00 \x01 \x00 \x00 '
66- 2) b'\x74 \x72 \x75 \x65 ' == 'true'"""
65+ 1) b'\x00 \x01 \x00 \x00 '
66+ 2) b'\x74 \x72 \x75 \x65 ' == 'true'"""
6767 with open (filepath , "rb" ) as f :
6868 file_signature = f .read (4 )
6969
@@ -159,10 +159,10 @@ def remove_glyf_instructions(tt):
159159# ========================================================
160160def update_gasp_table (tt ):
161161 """Modifies the following gasp table fields:
162- 1) rangeMaxPPEM changed to 65535
163- 2) rangeGaspBehavior changed to 0x000a (symmetric grayscale, no gridfit)"""
164- if tt ["gasp" ].gaspRange != {65535 : 0x000a }:
165- tt ["gasp" ].gaspRange = {65535 : 0x000a }
162+ 1) rangeMaxPPEM changed to 65535
163+ 2) rangeGaspBehavior changed to 0x000a (symmetric grayscale, no gridfit)"""
164+ if tt ["gasp" ].gaspRange != {65535 : 0x000A }:
165+ tt ["gasp" ].gaspRange = {65535 : 0x000A }
166166 return True
167167 else :
168168 return False
You can’t perform that action at this time.
0 commit comments