Skip to content

Commit f3c65fe

Browse files
committed
Dont optimize charstrings when generating source otf to merge.
This needs RF4.5 beta
1 parent 74331dd commit f3c65fe

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • Batch.roboFontExt/lib/batchGenerators/variableFontsGenerator

Batch.roboFontExt/lib/batchGenerators/variableFontsGenerator/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def build(self):
4747
self.makeLayerMaster()
4848
if self.binaryFormat == "ttf":
4949
self.makeMasterGlyphsQuadractic()
50+
elif self.binaryFormat == "otf":
51+
self.makeMasterExportOptimizeCharstring()
5052

5153
self.generate()
5254

@@ -205,6 +207,10 @@ def makeMasterGlyphsQuadractic(self):
205207
# use cu2qu to optimize all masters
206208
fonts_to_quadratic(self.operator.fonts.values())
207209

210+
def makeMasterExportOptimizeCharstring(self):
211+
for name, font in self.operator.fonts.items():
212+
font.lib["com.typemytype.robofont.optimizeCharstring"] = False
213+
208214
def makeMasterKerningCompatible(self):
209215
"""
210216
Optimize kerning data.
@@ -303,7 +309,6 @@ def makeLayerMaster(self):
303309

304310
self.generatedFiles.add(sourceDescriptor.path)
305311

306-
307312
def generate(self):
308313
dirname = os.path.dirname(self.destinationPath)
309314

0 commit comments

Comments
 (0)