fontello / svg2ttf

SVG -> TTF font convertor
MIT License
521 stars 80 forks source link

Please add proper support for font.weightClass #43

Closed lunaroja closed 4 years ago

lunaroja commented 8 years ago

https://github.com/fontello/svg2ttf/blob/56b97c98de9d290707545068f703bdb8a8f438c8/index.js#L42 // need to correctly convert text values, use default (400) until compleete //font.weightClass = svgFont.weightClass;

svgicons2svgfont has added support for fontWeight, but this does not carry over to the TTF files. https://github.com/nfroidure/svgicons2svgfont/commit/a33ae62f31fec87eef9ecde3b874ff7ea37dfcf6

puzrin commented 8 years ago

PR welcome. I don't know exact rules, because weight can be digital and named.

lunaroja commented 8 years ago

I found this. https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#Common_weight_name_mapping

puzrin commented 4 years ago

https://github.com/fontello/svg2ttf/commit/6b422340af615bc4c0f7d742330d8785dfd83f7f