PostScript::Font::TTtoType42

PostScript::Font::TTtoType42 can wrap a TrueType font into PostScript Type42.
Download

PostScript::Font::TTtoType42 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Johan Vromans, Squirrel Consultancy
  • Publisher web site:
  • http://search.cpan.org/~jv/PostScript-Font-1.10/lib/PostScript/Font.pm

PostScript::Font::TTtoType42 Tags


PostScript::Font::TTtoType42 Description

PostScript::Font::TTtoType42 can wrap a TrueType font into PostScript Type42. PostScript::Font::TTtoType42 can wrap a TrueType font into PostScript Type42.SYNOPSIS 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.METHODSnew(fontname )Opens the named TrueType font.as_stringReturns the font data in Type42 format as reference to one single string. Newlines are embedded for readability.write(t42name)Writes the font data in Type42 format to the named file.afm_as_stringReturns the font metrics in AFM format as a reference to a single string. Newlines are embedded for readability.write_afm(afmname)Writes the font metrics in AFM format to the named file.glyphnamesReturns an array reference with the names of all the glyphs of the font, sorted alphabetically.What's New in This Release:· Perl


PostScript::Font::TTtoType42 Related Software