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
#!/usr/bin/env python
import fontforge
F = fontforge.open("SourceCodePro-Regular.ttf")
for name in F:
F[name].export(f"pdfs/{name}.pdf")
F[name].export(f"svgs/{name}.svg")
The pdfs look fine:
Wheres certain svg's are blank:
This is not a bug in my image viewer, the svg's are clearly wrong:
Gdb showed me that this suspicious-looking if-branch is taken:
if ( !svg_sc_any(sc,layer) ) {
/* I think a space is represented by leaving out the d (path) entirely*//* rather than having d="" */
I would be thankful if you could fix the issue, but I could also try to write a fix and open a PR, if you would prefer that.
OS: ArchLinux
$ fontforge --version
Copyright (c) 2000-2024. See AUTHORS for Contributors.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
Version: 20230101
Based on sources from 2024-04-05 14:41 UTC-ML-D-GDK3.
fontforge 20230101
build date: 2024-04-05 14:41 UTC
The text was updated successfully, but these errors were encountered:
I downloaded https://fonts.google.com/specimen/Source+Code+Pro and ran this script:
The pdfs look fine:
Wheres certain svg's are blank:
This is not a bug in my image viewer, the svg's are clearly wrong:
Gdb showed me that this suspicious-looking if-branch is taken:
I would be thankful if you could fix the issue, but I could also try to write a fix and open a PR, if you would prefer that.
OS: ArchLinux
The text was updated successfully, but these errors were encountered: