1 package Font::TTF::Mort::Noncontextual;
 
   5 Font::TTF::Mort::Noncontextual - Noncontextual Mort subtable for AAT
 
  14 use Font::TTF::AATutils;
 
  16 @ISA = qw(Font::TTF::Mort::Subtable);
 
  20     my ($class, $direction, $orientation, $subFeatureFlags) = @_;
 
  22                     'direction'            => $direction,
 
  23                     'orientation'        => $orientation,
 
  24                     'subFeatureFlags'    => $subFeatureFlags
 
  27     $class = ref($class) || $class;
 
  33 Reads the table into memory
 
  42     my ($format, $lookup) = AAT_read_lookup($fh, 2, $self->{'length'} - 8, undef);
 
  43     $self->{'format'} = $format;
 
  44     $self->{'lookup'} = $lookup;
 
  49 =head2 $t->pack_sub($fh)
 
  57     return AAT_pack_lookup($self->{'format'}, $self->{'lookup'}, 2, undef);
 
  62 Prints a human-readable representation of the table
 
  70     my $post = $self->post();
 
  72     $fh = 'STDOUT' unless defined $fh;
 
  74     my $lookup = $self->{'lookup'};
 
  75     $fh->printf("\t\tLookup format %d\n", $self->{'format'});
 
  76     if (defined $lookup) {
 
  77         foreach (sort { $a <=> $b } keys %$lookup) {
 
  78             $fh->printf("\t\t\t%d [%s] -> %d [%s])\n", $_, $post->{'VAL'}[$_], $lookup->{$_}, $post->{'VAL'}[$lookup->{$_}]);
 
  91 Jonathan Kew L<Jonathan_Kew@sil.org>. See L<Font::TTF::Font> for copyright and