Example Font Metrics
====================

This directory contains some sample font metrics mapping files
and SVG font metrics files.

Metrics mapping files
---------------------

The JackSVG font metrics mapping files are:
 FM-svg.xml   - references supplied SVG font metrics files (see below)
 FM-winxp.xml - references TrueType fonts on Microsoft Windows XP

To use these, supply the mapping file to pres2svg using its fontmetrics
option:

  pres2svg --fontmetric FM-svg.xml ...
or
  pres2svg -f FM-svgfm.xml ...


SVG font metrics
----------------

A sample collection of SVG font metrics files are provided for use with
the FM-svg.xml mapping file.

The pres2svg program can read font metrics information from SVG font
files. Ordinary SVG files with a single embedded <font> declaration.
The supplied files are such files, but with all outline information
stripped from them.  They cannot be used as SVG fonts but contain just
the font metrics information needed by pres2svg. The drawing information
was stripped from them to save space and for copyright reasons.

These SVG font metrics files were created by:
1. Using the ttf2svg program for Batik <http://xml.apache.org/batik/>
   to convert TrueType fonts into SVG.
2. Filtering out the outline information (and other unused information)
   from the SVG files using a sed script. The sed script also
   inserts necessary namespace information into the SVG file.

The file "convert-ttf2svg.bat" was used to perform the first step. The
files "convert-svg2fm.sh" and "convert-svg2fm.sed" were used to perform
the second step.  You can used them as a guide for creating your own SVG
font metrics files from other TrueType fonts that you may wish to use.

----------------------------------------------------------------
$Source: /projects/titanium/cvs/JackSVG/src/examples/fontmetrics/readme.txt,v $
$Date: 2002/08/20 07:34:31 $
$Revision: 1.1.1.1 $
----------------------------------------------------------------
END
