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 a90a7ab commit a536694Copy full SHA for a536694
fontbro/font.py
@@ -426,6 +426,7 @@ def _init_with_ttfont(
426
) -> None:
427
self._fileobject = BytesIO()
428
ttfont.save(self._fileobject)
429
+ self._fileobject.seek(0)
430
self._ttfont = TTFont(self._fileobject, **kwargs)
431
self._kwargs = kwargs
432
@@ -1796,6 +1797,7 @@ def save_to_fileobject(
1796
1797
if fileobject is None:
1798
fileobject = BytesIO()
1799
font.save(fileobject)
1800
+ fileobject.seek(0)
1801
return fileobject
1802
1803
def save_variable_instances(
0 commit comments