Skip to content

Commit 96bf463

Browse files
committed
[font.py] black formatting
1 parent 385d867 commit 96bf463

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/dehinter/font.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def has_vdmx_table(tt):
6262

6363
def 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
# ========================================================
160160
def 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

0 commit comments

Comments
 (0)