RTF::Tokenizer::FontTable - Retrieve Fonttable info from an RTF file
Represents RTF font tables as a data structure
use RTF::Tokenizer; use RTF::Tokenizer::FontTable; # Create the initial object my $rtf = RTF::Tokenizer->new($data); # Grab the font table info my %font_hash = %{RTF::Tokenizer::FontTable::get_table($rtf)};
Returns a hash reference to the data structure containing font information. This will be like {'1' => {} }, where the values inside the nested hash are likely to be one of: family, pitch, charset, fbias, cpg, embedded_encoding, panose, embedded_font_data, embedded_font_file, untagged, face. Most of these are explained in the RTF spec.
Peter Sergeant <pete@clueball.com>
Copyright 2002 Peter Sergeant.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install RTF::Tokenizer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RTF::Tokenizer
CPAN shell
perl -MCPAN -e shell install RTF::Tokenizer
For more information on module installation, please visit the detailed CPAN module installation guide.