Generating / converting proper SVG fonts

xy's picture

Hello,

I am trying to generate clean SVG fonts.
I was using the batik font converter (http://xmlgraphics.apache.org/batik/tools/font-converter.html)…
But for some reason it seems to skip some glyphs. Can't manage to get the euro sign for example.

Tried with FontForge as well, no success at all.
What are you guys using? At best not fontsquirrel… ?

Again, it seems our favorite tools are lacking quite important functions.
Not really happy about relying on some command line found through browsing the internet.

Karl Stange's picture

At best not fontsquirrel… ?

What about Font Squirrel's convertor did not work for you?

Khaled Hosny's picture

Font Squirrel is using FontForge internally, and I think that is the best you can find. Inkscape can build SVG fonts IIRC, but it will not convert existing ones.

xy's picture

If Fontsquirrel is using FontForge, then I'm curious about how it is doing that.
I tried converting a font with it, and it produced a file that would not work in safari.
Do you have an idea of the command line to convert from a ttf file?

Karl> I think fontsquirrel is fine for tests and for people converting their fonts, but as a professional type designer, I don't think it is the best idea to rely on an online tool which produces a result without giving me any control and understanding on what is happening.
On top of that, I wanted to try it today because nothing was working, and it is down because of a storm (?!).

Karl Stange's picture

@Officer McClane, why do you need SVG as opposed to WOFF? Also, which version of Safari are you working with as I think SVG is only supported in later versions.

I think that FontForge is currently the only publicly available editor that supports the output of SVG fonts but I do not understand all of the complexities of that application.

Karl Stange's picture

You could also try this:

http://sourceforge.net/projects/birdfont/

I have only just found it and so have no idea how useful it might be.

Khaled Hosny's picture

I don’t use SVG fonts myself (it is a very limited font format when it comes to fonts for complex scripts. which is what I generally work on), but FontForge can be scripted and called from regular Python scripts (unlike FontLab which I’m told you have to run the scripts inside its GUI), which is almost certainly how Font Squirrel is calling it. There is also a “native” FontForge scripting language that I often use for quick stuff, so to convert any font format that FontForge can read to SVG from command line, I’d use something like this fontforge -lang=ff -c 'Open($1); Generate($1:r+".svg")' fontname.ttf, which should create a fontname.svg file in the current directory.

xy's picture

Thank you Khaled, I'll look into it.
I managed to solve my problem today but I'd still like a better solution.

Karl> Some clients want svg, for older versions of iOS I think.
svg still render on safari 6.

xy's picture

Thank you Karl for Birdfont, I'll give it a try too.

Syndicate content Syndicate content