fontello / svg2ttf

SVG -> TTF font convertor
MIT License
518 stars 79 forks source link

Something wrong with unscii SVG convert #98

Closed puzrin closed 3 years ago

puzrin commented 3 years ago

Fonts have header wih broken merics. For unscii-8.svg, replace with

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg">
<defs>
<font id="Unscii" horiz-adv-x="32">
<font-face font-family="Unscii" font-weight="medium" font-style="normal"
units-per-em="32" ascent="32" descent="0" />

Then FonForge loads as expected.

Convert to ttf:

npx svg2ttf unscii-8.svg unscii-8.ttf

=> empty chars in fontforge

unscii-svg.tar.gz

puzrin commented 3 years ago

Fixed by https://github.com/fontello/svg2ttf/commit/93f2d54ca4e7ffdf71543bcaaabaf7271f10e6b5