Closed mogadanez closed 11 years ago
it works only
descent="..." or ascent="..." attributes provided in
Could you give some additional info, how you got source svg file? Is it generated by some well-known software or you did it manually?
I dont hesitate, thas convertor has bugs, but your source also miss mandatory xml headers and that looks strange.
i got this svg from tx.exe tool ( included in http://www.adobe.com/devnet/opentype/afdko/topic_overview.html ) Initially i have pdf file, than i do:
Actually i can try patch my svg file with required data.
Metadata of font that i have:
Weight "Light"
FontBBox {-80,-244,1534,1209}
FSType 0
sup.srcFontType CFF (name-keyed)
sup.nGlyphs 79
## Private
BlueValues {-12,0,552,565,741,753}
OtherBlues {-179,-165}
Ok. Thanks for info. I'll fix trivial bugs, don't worry.
One more question. Does your font have descent = -200 ? That seems to be the only case, when it can be skipped in src.
Also, please note, that due lack of time convertor features are limited. It does not supports kerning, ligatures and some things, that can be significant for text, but not significant for icons.
Probably we can contribute for some features, but we need some starting bump, due this area is new for us. this is source font extracted from Pdf. https://dl.dropboxusercontent.com/u/760909/in.cff Actually, since we work with external pdf's, we can have different range of fonts.
Also, as a font-guru, probably you have an advice how to convert font from pdf to web fonts( css + .eot +.ttf + .svg + .woff)
I never worked with cff and never extracted fonts from pdf. My knowledge is limited to making iconic fonts only, for web.
also we used fontforge & ttx to control result.
Fixed crashes. But i still strongly recommend to add descent/ascent attributes, because those have no default values, according to SVG font specs. Now i use 850/-150, but this can be wrong for your case.
https://dl.dropboxusercontent.com/u/760909/in.svg
First of all it does not have metadata, and fails at
if fix it by adding check
not it fails on create ttf:in os2.js:
because in buf.writeInt16(font.avgWidth); // xAvgCharWidth avgWidth is NaN