You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to migrate Google Font repo from using fontmake to gftools builder, and after running it throws the following error:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\fontmake\font_project.py", line 439, in _iter_compile
yield compile_func(ufo, debugFeatureFile=debugFeatureFile, **options)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\ufo2ft\__init__.py", line 241, in compileTTF
glyphSet = call_preprocessor(ufo, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\ufo2ft\__init__.py", line 70, in call_preprocessor
return preProcessor.process()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\ufo2ft\preProcessor.py", line 101, in process
func(ufo, glyphSet)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\ufo2ft\filters\base.py", line 202, in __call__
if include(glyph) and filter_(glyph):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\ufo2ft\filters\removeOverlaps.py", line 47, in filter
self.union(contours, pen)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\booleanOperations\booleanOperationManager.py", line 100, in union
return _performOperation("union", contours, [], outPen)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\booleanOperations\booleanOperationManager.py", line 69, in _performOperation
subjectInputContours = [InputContour(contour) for contour in subjectContours if contour and len(contour) > 1]
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\booleanOperations\booleanOperationManager.py", line 69, in <listcomp>
subjectInputContours = [InputContour(contour) for contour in subjectContours if contour and len(contour) > 1]
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\booleanOperations\flatten.py", line 68, in __init__
self.segments = _convertPointsToSegments(points)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\booleanOperations\flatten.py", line 446, in _convertPointsToSegments
raise UnsupportedContourError(
booleanOperations.exceptions.UnsupportedContourError: ('Trying to perform operation on unsupported segment type.', 'qcurve')
It seems that the overlapping backend doesn't work for my font, and trying fontmake --overlaps-backend pathops does not result in the same error. Is there any way to let gftools builder use the pathops backend?
The text was updated successfully, but these errors were encountered:
I should mention that the underlying issue here is that you're using quadratic curves in your sources. Maybe you want to do that, in which case fine, but maybe those curves ended up as quadratic by accident and you should convert them back to cubic in your editor.
If you don't need overlap removal at all, add this to your sources/config.yaml:
removeOutlineOverlaps: false
If you specifically want to use pathops, add this to your sources/config.yaml:
I am trying to migrate Google Font repo from using fontmake to gftools builder, and after running it throws the following error:
It seems that the overlapping backend doesn't work for my font, and trying
fontmake --overlaps-backend pathops
does not result in the same error. Is there any way to let gftools builder use the pathops backend?The text was updated successfully, but these errors were encountered: