| Font-TTF documentation | Contained in the Font-TTF distribution. |
Font::TTF::Cvt_ - Control Value Table in a TrueType font
This is a minimal class adding nothing beyond a table, but is a repository for cvt type information for those processes brave enough to address hinting.
This is an array of CVT values. Thus access to the CVT is via:
$f->{'cvt_'}{'val'}[$num];
Reads the CVT table into both the tables ' dat' variable and the val
array.
Updates the RAM file copy ' dat' to be the same as the array.
None known
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing.
| Font-TTF documentation | Contained in the Font-TTF distribution. |
package Font::TTF::Cvt_;
use strict; use vars qw(@ISA $VERSION); use Font::TTF::Utils; @ISA = qw(Font::TTF::Table); $VERSION = 0.0001;
sub read { my ($self) = @_; $self->read_dat || return undef; $self->{' read'} = 1; $self->{'val'} = [TTF_Unpack("s*", $self->{' dat'})]; $self; }
sub update { my ($self) = @_; return undef unless ($self->{' read'} && $#{$self->{'val'}} >= 0); $self->{' dat'} = TTF_Pack("s*", @{$self->{'val'}}); $self; } 1;