1 package Font::TTF::Fmtx;
5 Font::TTF::Fmtx - Font Metrics table
9 This is a simple table with just standards specified instance variables
11 =head1 INSTANCE VARIABLES
29 use vars qw(@ISA %fields @field_info);
31 require Font::TTF::Table;
34 @ISA = qw(Font::TTF::Table);
38 'horizontalBefore' => 'c',
39 'horizontalAfter' => 'c',
40 'horizontalCaretHead' => 'c',
41 'horizontalCaretBase' => 'c',
42 'verticalBefore' => 'c',
43 'verticalAfter' => 'c',
44 'verticalCaretHead' => 'c',
45 'verticalCaretBase' => 'c');
50 for ($i = 0; $i < $#field_info; $i += 2)
52 ($k, $v, $c) = TTF_Init_Fields($field_info[$i], $c, $field_info[$i + 1]);
53 next unless defined $k && $k ne "";
61 Reads the table into memory as instance variables
70 $self->SUPER::read or return $self;
71 init unless defined $fields{'glyphIndex'};
72 $self->{' INFILE'}->read($dat, 16);
74 TTF_Read_Fields($self, $dat, \%fields);
81 Writes the table to a file either from memory or by copying.
89 return $self->SUPER::out($fh) unless $self->{' read'};
91 $fh->print(TTF_Out_Fields($self, \%fields, 16));
105 Jonathan Kew L<Jonathan_Kew@sil.org>. See L<Font::TTF::Font> for copyright and