1 package Font::TTF::Fpgm;
5 Font::TTF::Fpgm - Font program in a TrueType font. Called when a font is loaded
9 This is a minimal class adding nothing beyond a table, but is a repository
10 for fpgm type information for those processes brave enough to address hinting.
15 use vars qw(@ISA $VERSION);
17 @ISA = qw(Font::TTF::Table);
23 Reading this table is simply a process of reading all the data into the RAM
24 copy. Nothing more is done with it.
34 =head2 $t->out_xml($context, $depth)
36 Outputs Fpgm program as XML
42 my ($self, $context, $depth) = @_;
43 my ($fh) = $context->{'fh'};
47 $dat = Font::TTF::Utils::XML_binhint($self->{' dat'});
48 $dat =~ s/\n(?!$)/\n$depth$context->{'indent'}/omg;
49 $fh->print("$depth<code>\n");
50 $fh->print("$depth$context->{'indent'}$dat");
51 $fh->print("$depth</code>\n");
56 =head2 $t->XML_end($context, $tag, %attrs)
58 Parse all that hinting code
65 my ($context, $tag, %attrs) = @_;
69 $self->{' dat'} = Font::TTF::Utils::XML_hintbin($context->{'text'});
72 { return $self->SUPER::XML_end(@_); }
83 Martin Hosken Martin_Hosken@sil.org. See L<Font::TTF::Font> for copyright and