The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Pastel-ttf2svg.pl version 0.04

- a true type font to Scalable Vector Graphics font converter. Distrubuted along with Pastel tookit but can be used as a stand-alone perl script.

SYNOPSIS

  Pastel-ttf2svg.pl -f <TTF file> [-l NNN] [-h NNN] [-i CCC]  [-t] [-s] 
 
  -f <ttffile>    - The full path name of the TTF file
  -l NNN          - The low index number of the character. Default 32.
  -h NNN          - The high index number of the character. Default 255
  -i CCC          - Font id.
  -t              - Print a SVG file with the glyphs displayed
  -s              - This is Symbol font file. Default characters
                    parsed is from 61472 to 61695. When using your
                    own high and low character values use character 
                    numbers between 61472 to 61695.

DESCRIPTION

Patel-ttf2svg.pl is a Perl script that parses a True Type Font file and generates a SVG font file which can be used to display a SVG file in platform independant manner. Till date the only program that allows to do it is Batik toolkit from apache. It is advisable to generate the font only with the glyph that is required for a given document.

OPTIONS

  -f <ttffile> - The full path name of the TTF font file. This is required. 
                 Ofcourse!!!

  -l NNN       - The lower character number to parse. The ascii character
                 sets starts with the character 32 which is default for 
                 the program.

  -h NNN       - The highest character number to parse. The program default
                 is 255. Please note that some of the glyphs that are required
                 in a given SVG file may be beyond this range. In that case use
                 the highest glyph number for the character sets.

  -i CCC       - The font id. Required for referencing the font inside an SVG
                 file.

  -t           - Just a boolean parameter. When passed outputs a complete SVG
                 file with the glyhs created to test a particular font.

  -s           - A boolean flag required for using Microsoft non standard fonts
                 like Wingding, Marlett etc. If you just supply this argument
                 without the -l and -h options then it set the "low character"
                 to 61472 and the high character to 61695. When you want to
                 supply your own low and high characters please specify it 
                 within this range. To see the complete lists of glyphs use
                 pastel-ttf2svg.pl -f mywinding.ttf -t -s

AUTHOR

Malay Kumar Basu, curiouser@gene.ccmbindia.org