blob: 0e89a5756cbaa253865684975e6aff973d42b196 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import string
from FL import *
def CreateFeaFile(font, path):
fea_text = font.ot_classes
for cls in font.classes:
text = "@" + cls + "];\n"
text = string.replace(text, ":", "= [")
text = string.replace(text, "\'", "")
fea_text += text
for fea in font.features:
fea_text += fea.value
fea_text = string.replace(fea_text, "\r\n", "\n")
fout = open(path, "w")
fout.write(fea_text)
fout.close()
|