SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

font2svg - (c) 2002-2004 Niklas Peinecke, peinecke@gdv.uni-hannover.de

font2svg, an all font 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: Unpack the archive via

gtar xvfz font2svg.tar.gz

in a directory of your choice. Then type

make

That's it! If you have GhostScript installed in a different location than /usr/bin/gs you may want to edit the Makefile to point to that location.

Maybe you want to add your own encodings to the "encodings" file. See the file for details of existing encodings. If you have written encodings that may be useful for other users as well, please send them to me.

Problems with non-Linux Unices

On different Unices there are probably other versions of getopt installed. If you encounter error reports mentioning getopt consider replacing line 29 of the main file "font2svg" by

non_gnu_getopt=1

This patch has been reported to work on AIX 4.3.3 (thanks to Matthias Dillier) and on FreeBSD (thanks to Ying-Chieh Liao).


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.