1 package Font::TTF::LTSH;
5 Font::TTF::LTSH - Linear Threshold table
9 Holds the linear threshold for each glyph. This is the ppem value at which a
10 glyph's metrics become linear. The value is set to 1 if a glyph's metrics are
13 =head1 INSTANCE VARIABLES
19 An array of ppem values. One value per glyph
31 @ISA = qw(Font::TTF::Table);
42 my ($fh) = $self->{' INFILE'};
45 $self->SUPER::read or return $self;
48 ($self->{'Version'}, $numg) = unpack("nn", $dat);
49 $self->{'Num'} = $numg;
51 $fh->read($dat, $numg);
52 $self->{'glyphs'} = [unpack("C$numg", $dat)];
59 Outputs the LTSH to the given fh.
66 my ($numg) = $self->{' PARENT'}{'maxp'}{'numGlyphs'};
68 return $self->SUPER::out($fh) unless ($self->{' read'});
70 $fh->print(pack("nn", 0, $numg));
71 $fh->print(pack("C$numg", @{$self->{'glyphs'}}));
84 Martin Hosken Martin_Hosken@sil.org. See L<Font::TTF::Font> for copyright and