.glif to .svg conversion?
Options

Johannes Neumeier
Posts: 394
Hey typecoders,
I've been looking to extract some glyph outlines from a font and output them as SVGs. I saw some fontTools examples for the reverse action, using a fontTools pen to write SVG instructions to a UFO glyph, but was wondering if anybody is aware of existing solutions for the reverse: Taking the outlines in a .glif file and outputting them as SVG. Judging from the pen instructions this does not seem to be overly complex, but I would happily take suggestions of existing solutions in case missed them in my search so far? Also it does not have to be UFO to SVG necessarily as long as the script can be somewhat self-contained.
Btw, aside from fontTools I also looked at the FontParts library, but wasn't able to see how or what that type of pen object would work — they appear to be different implementations of the same concept, no?
Thanks for any tips and suggestions,
-J
0
Comments
-
Have a look at the SVG export in RoboChrome: https://github.com/jenskutilek/RoboChrome
or my SVG pens from TypoLabs 2016: https://github.com/jenskutilek/TypoLabs2016/blob/master/17%20SVG%20Export.py
(come to think about, both may use the same code, or used the same code at one point in time, can‘t remember exactly now)1 -
Hey Jens,thanks a lot for those pointers and the permissive licenses they come with. I'll hack away with those and see where I get with itJ0
-
Metapolator does this in JS, using a pen object.0
Categories
- All Categories
- 46 Introductions
- 3.8K Typeface Design
- 478 Type Design Critiques
- 556 Type Design Software
- 1.1K Type Design Technique & Theory
- 643 Type Business
- 833 Font Technology
- 29 Punchcutting
- 510 Typography
- 120 Type Education
- 315 Type History
- 75 Type Resources
- 109 Lettering and Calligraphy
- 30 Lettering Critiques
- 79 Lettering Technique & Theory
- 534 Announcements
- 86 Events
- 110 Job Postings
- 167 Type Releases
- 170 Miscellaneous News
- 274 About TypeDrawers
- 53 TypeDrawers Announcements
- 119 Suggestions and Bug Reports