PostScript::Font::TTtoType42 - Wrap a TrueType font into PostScript Type42 |
PostScript::Font::TTtoType42 - Wrap a TrueType font into PostScript Type42
use PostScript::Font::TTtoType42; # Open a TrueType font. my $font = PostScript::Font::TTtoType42::->new("Arial.ttf"); # Write a Type42 font. $font->write("Arial.t42"); # Get the font data (scalar ref). my $ptr = $font->as_string; # Get the font glyph names (array ref). my $gref = $font->glyphnames;
PostScript::Font::TTtoType42 is a subclass of Font::TTF::Font. It knows how to wrap a TrueType font into PostScript Type42 format.
Certain TrueType fonts cause problems. If you find one, let me know.
CID fonts are not yet supported.
Johan Vromans, Squirrel Consultancy <jvromans@squirrel.nl>
This program is Copyright 2002 by Squirrel Consultancy. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of either: a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the ``Artistic License'' which comes with Perl.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the Artistic License for more details.
PostScript::Font::TTtoType42 - Wrap a TrueType font into PostScript Type42 |