fontello / svg2ttf

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

Underline thickness and position are lost #79

Closed cyberalien closed 5 years ago

cyberalien commented 5 years ago

After converting SVG to TTF, font loses some metrics: underline-thickness, underline-position

In svg font they are set:

  <font-face 
    font-family="Test Font"
    font-weight="400"
    font-stretch="normal"
    units-per-em="512"
    panose-1="2 0 5 9 0 0 0 0 0 0"
    ascent="512"
    descent="0"
    bbox="0 0 512 512"
    underline-thickness="50"
    underline-position="-150"
    unicode-range="U+E3C6-E3CB"
  />

but after converting to TTF values are 5 for position, 0 for thickness. I used FontForge and FontKit to test those metrics, both report same values.