1 package Font::TTF::PCLT;
5 Font::TTF::PCLT - PCLT TrueType font table
9 The PCLT table holds various pieces HP-PCL specific information. Information
10 here is generally not used by other software, except for the xHeight and
11 CapHeight which are stored here (if the table exists in a font).
13 =head1 INSTANCE VARIABLES
15 Only from table and the standard:
32 Notice that C<Typeface>, C<CharacterComplement> and C<FileName> return arrays
33 of unsigned characters of the appropriate length
40 use vars qw(@ISA %fields @field_info);
42 require Font::TTF::Table;
45 @ISA = qw(Font::TTF::Table);
56 'CharacterComplement' => 'C8',
58 'StrokeWeight' => 'C',
65 for ($i = 0; $i < $#field_info; $i += 2)
67 ($k, $v, $c) = TTF_Init_Fields($field_info[$i], $c, $field_info[$i + 1]);
68 next unless defined $k && $k ne "";
76 Reads the table into memory thanks to some utility functions
85 $self->SUPER::read || return $self;
87 init unless defined $fields{'xHeight'};
88 $self->{' INFILE'}->read($dat, 54);
90 TTF_Read_Fields($self, $dat, \%fields);
97 Writes the table to a file either from memory or by copying.
103 my ($self, $fh) = @_;
105 return $self->SUPER::out($fh) unless $self->{' read'};
106 $fh->print(TTF_Out_Fields($self, \%fields, 54));
117 Martin Hosken Martin_Hosken@sil.org. See L<Font::TTF::Font> for copyright and