Skip XML comments when reading charstrings in editor

This commit is contained in:
Ben Harris 2024-11-19 22:27:47 +00:00
parent 5e46500fb8
commit a0cbdb9d05

1
editor
View File

@ -121,6 +121,7 @@ class EditorGui:
else:
print("unknown charstring component " + repr(word))
interp = CharstringInterpreter()
data = re.sub(r"<!--(?:[^-]|-[^-])*-->", "", data)
for word in data.split():
interp.op(word)
paths = [[[int((float(x)-LEFT)*pixel*0.01 + 2*gutter + XSIZE*pixel),