Welcome to BSDforge

Projects : Print : font2svg

font2svg
font2svg — an all fonts to SVG-font converter.

font2svg can convert any font GhostScript is capable of rendering into an SVG-font. This includes all PostScript fonts, GhostScript's own format, and almost all TrueType fonts. You may want to hand-edit the generated font to add font-style information.

usage:

font2svg fontname input-file output-file
fontname specifies the name the font should be given in the svg-font. input-file can be any font ghostscript is able to render (.pfa, .pfb, .gsf, .ttf). Some TrueType-fonts (type 2) may not work.

example:

font2svg "Utopia-Roman" /usr/share/teTeX-1.0.7/share/texmf/fonts/type1/adobe/utopia/putr8a.pfb Utopia-Roman.svg

Requirements

You need a working installation of GhostScript, the executeable should be named "gs".

Installation

Using the FreeBSD ports system:
cd /usr/ports/print/font2svg make install clean
Using the FreeBSD pkg system:
pkg install print/font2svg
You can also find modified version of font2svg in DviSvg, by Rudolf Sabo.