package Font::TTF::Cvt_;

=head1 NAME

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.


=over 4

=item val

This is an array of CVT values. Thus access to the CVT is via:



=head1 METHODS


use strict;
use vars qw(@ISA $VERSION);
use Font::TTF::Utils;

@ISA = qw(Font::TTF::Table);

$VERSION = 0.0001;

=head2 $t->read

Reads the CVT table into both the tables C<' dat'> variable and the C<val>


sub read
    my ($self) = @_;

    $self->read_dat || return undef;
    $self->{' read'} = 1;
    $self->{'val'} = [TTF_Unpack("s*", $self->{' dat'})];

=head2 $t->update

Updates the RAM file copy C<' dat'> to be the same as the array.


sub update
    my ($self) = @_;

    return undef unless ($self->{' read'} && $#{$self->{'val'}} >= 0);
    $self->{' dat'} = TTF_Pack("s*", @{$self->{'val'}});


=head1 BUGS

None known

=head1 AUTHOR

Martin Hosken L<>. 


Copyright (c) 1998-2016, SIL International ( 

This module is released under the terms of the Artistic License 2.0. 
For details, see the full text of the license in the file LICENSE.