Scroll to navigation

Font::TTF::OTTags(3) User Contributed Perl Documentation Font::TTF::OTTags(3)

NAME

Font::TTF::OTTags - Utilities for TrueType/OpenType tags

SYNOPSIS

  use Font::TTF::OTTags qw( %tttags %ttnames readtagsfile );
  
  # Look at built-in stuff:
  $script_tag = $tttags{'SCRIPT'}{'Cypriot Syllabary'};
  $lang_name = $ttnames{'LANGUAGE'}{'AFK '}
  
  # Read latest tags file to add to built-in definitions
  readtagsfile ("C:\\Program Files\\Microsoft VOLT\\TAGS.txt");

First-level keys to %tttags and %ttnames are:

'SCRIPT' -- retrieve script tag or name

'LANGUAGE' -- retrieve language tag or name

'FEATURE' -- retrieve feature tag or name

Built-in data has been derived from Microsoft's tag registry at <http://www.microsoft.com/typography/otspec/ttoreg.htm>, updated to draft v1.5 of the OpenType Spec.

METHODS

readtagsfile ( filename )

Read a file in the syntax of Tags.txt (included with Microsoft VOLT) to obtain additional/replacement tag definitions.

Returns 0 if can't open the file; else 1.

2008-06-11 perl v5.10.1