/usr/lib/x86_64-linux-gnu/perl5/5.26/Font/FreeType/NamedInfo.pm is in libfont-freetype-perl 0.09-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | package Font::FreeType::NamedInfo;
use warnings;
use strict;
1;
__END__
=head1 NAME
Font::FreeType::NamedInfo - information from 'names table' in font file
=head1 SYNOPSIS
use Font::FreeType;
my $freetype = Font::FreeType->new;
my $face = $freetype->face('Vera.ttf');
my $infos = $face->namedinfos;
if($infos && @$infos) {
say $_->string for(@$infos);
}
=head1 DESCRIPTION
The TrueType and OpenType specifications allow the inclusion of a special
I<names table> in font files. This table contains textual (and internationalized)
information regarding the font, like family name, copyright, version, etc.
Possible values for I<platform_id>, I<encoding_id>, I<language_id>, and
I<name_id> are given in the file I<ttnameid.h> from FreeType distribution. For
details please refer to the TrueType or OpenType specification.
=head1 METHODS
=over 4
=item platform_id
=item encoding_id
=item language_id
=item name_id
=item string
The I<name> string. Note that its format differs depending on the (platform,
encoding) pair. It can be a Pascal String, a UTF-16 one, etc.
Generally speaking, the string is not zero-terminated. Please refer to the
TrueType specification for details.
=back
=cut
|