We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b454de commit 866204cCopy full SHA for 866204c
scripts/dlig2calt.py
@@ -27,14 +27,14 @@ def simpleDlig2calt(fontPath, inplace=False):
27
ttxPath = fontPath.replace(".ttf",".ttx")
28
29
# Read in the TTX file
30
- with open(ttxPath, 'r') as file:
+ with open(ttxPath, 'r', encoding='utf-8') as file:
31
ttxData = file.read()
32
33
# Replace the target string to update the dlig feature tags to calt feature tags
34
ttxData = ttxData.replace('"dlig"', '"calt"')
35
36
# Write the TTX file out again
37
- with open(ttxPath, 'w') as file:
+ with open(ttxPath, 'w', encoding='utf-8') as file:
38
file.write(ttxData)
39
40
# merge TTX back into font:
0 commit comments