Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.171
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Font /
TTF /
[ HOME SHELL ]
Name
Size
Permission
Action
Features
[ DIR ]
drwxr-xr-x
Kern
[ DIR ]
drwxr-xr-x
Mort
[ DIR ]
drwxr-xr-x
Woff
[ DIR ]
drwxr-xr-x
AATKern.pm
2.89
KB
-rw-r--r--
AATutils.pm
23.07
KB
-rw-r--r--
Anchor.pm
4.8
KB
-rw-r--r--
Bsln.pm
3.72
KB
-rw-r--r--
Changes_old.txt
2.17
KB
-rw-r--r--
Cmap.pm
23.91
KB
-rw-r--r--
Coverage.pm
8.38
KB
-rw-r--r--
Cvt_.pm
1.4
KB
-rw-r--r--
DSIG.pm
1.97
KB
-rw-r--r--
Delta.pm
3.39
KB
-rw-r--r--
Dumper.pm
2.56
KB
-rw-r--r--
EBDT.pm
7.16
KB
-rw-r--r--
EBLC.pm
6.3
KB
-rw-r--r--
Fdsc.pm
2.18
KB
-rw-r--r--
Feat.pm
4.44
KB
-rw-r--r--
Fmtx.pm
1.96
KB
-rw-r--r--
Font.pm
29.07
KB
-rw-r--r--
Fpgm.pm
1.66
KB
-rw-r--r--
GDEF.pm
13.64
KB
-rw-r--r--
GPOS.pm
20.74
KB
-rw-r--r--
GSUB.pm
8.64
KB
-rw-r--r--
Glat.pm
3.42
KB
-rw-r--r--
Gloc.pm
2.56
KB
-rw-r--r--
Glyf.pm
3.68
KB
-rw-r--r--
Glyph.pm
25.25
KB
-rw-r--r--
GrFeat.pm
8.33
KB
-rw-r--r--
Hdmx.pm
3.12
KB
-rw-r--r--
Head.pm
5.84
KB
-rw-r--r--
Hhea.pm
3.54
KB
-rw-r--r--
Hmtx.pm
4.61
KB
-rw-r--r--
Kern.pm
8.5
KB
-rw-r--r--
LTSH.pm
1.67
KB
-rw-r--r--
Loca.pm
4.72
KB
-rw-r--r--
Manual.pod
8.96
KB
-rw-r--r--
Maxp.pm
4.17
KB
-rw-r--r--
Mort.pm
2.1
KB
-rw-r--r--
Name.pm
27.78
KB
-rw-r--r--
OS_2.pm
38.07
KB
-rw-r--r--
OTTags.pm
42.94
KB
-rw-r--r--
OldCmap.pm
9.66
KB
-rw-r--r--
OldMort.pm
25.53
KB
-rw-r--r--
PCLT.pm
2.49
KB
-rw-r--r--
PSNames.pm
132.77
KB
-rw-r--r--
Post.pm
9.53
KB
-rw-r--r--
Prep.pm
1.61
KB
-rw-r--r--
Prop.pm
3.47
KB
-rw-r--r--
Segarr.pm
9.53
KB
-rw-r--r--
Silf.pm
28.24
KB
-rw-r--r--
Sill.pm
3.2
KB
-rw-r--r--
Table.pm
11.15
KB
-rw-r--r--
Ttc.pm
3.87
KB
-rw-r--r--
Ttopen.pm
44.24
KB
-rw-r--r--
Useall.pm
2.16
KB
-rw-r--r--
Utils.pm
18.51
KB
-rw-r--r--
Vhea.pm
3.57
KB
-rw-r--r--
Vmtx.pm
1.66
KB
-rw-r--r--
Win32.pm
1.08
KB
-rw-r--r--
Woff.pm
1.09
KB
-rw-r--r--
XMLparse.pm
5.49
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Head.pm
package Font::TTF::Head; =head1 NAME Font::TTF::Head - The head table for a TTF Font =head1 DESCRIPTION This is a very basic table with just instance variables as described in the TTF documentation, using the same names. One of the most commonly used is C<unitsPerEm>. =head1 INSTANCE VARIABLES The C<head> table has no internal instance variables beyond those common to all tables and those specified in the standard: version fontRevision checkSumAdjustment magicNumber flags unitsPerEm created modified xMin yMin xMax yMax macStyle lowestRecPPEM fontDirectionHint indexToLocFormat glyphDataFormat The two dates are held as an array of two unsigned longs (32-bits) =head1 METHODS =cut use strict; use vars qw(@ISA %fields @field_info); require Font::TTF::Table; use Font::TTF::Utils; @ISA = qw(Font::TTF::Table); @field_info = ( 'version' => 'v', 'fontRevision' => 'f', 'checkSumAdjustment' => 'L', 'magicNumber' => 'L', 'flags' => 'S', 'unitsPerEm' => 'S', 'created' => 'L2', 'modified' => 'L2', 'xMin' => 's', 'yMin' => 's', 'xMax' => 's', 'yMax' => 's', 'macStyle' => 'S', 'lowestRecPPEM' => 'S', 'fontDirectionHint' => 's', 'indexToLocFormat' => 's', 'glyphDataFormat' => 's'); sub init { my ($k, $v, $c, $i); for ($i = 0; $i < $#field_info; $i += 2) { ($k, $v, $c) = TTF_Init_Fields($field_info[$i], $c, $field_info[$i + 1]); next unless defined $k && $k ne ""; $fields{$k} = $v; } } =head2 $t->read Reads the table into memory thanks to some utility functions =cut sub read { my ($self) = @_; my ($dat); $self->SUPER::read || return $self; init unless defined $fields{'Ascender'}; $self->{' INFILE'}->read($dat, 54); TTF_Read_Fields($self, $dat, \%fields); $self; } =head2 $t->out($fh) Writes the table to a file either from memory or by copying. If in memory (which is usually) the checkSumAdjustment field is set to 0 as per the default if the file checksum is not to be considered. =cut sub out { my ($self, $fh) = @_; return $self->SUPER::out($fh) unless $self->{' read'}; # this is never true # $self->{'checkSumAdjustment'} = 0 unless $self->{' PARENT'}{' wantsig'}; $fh->print(TTF_Out_Fields($self, \%fields, 54)); $self; } =head2 $t->minsize() Returns the minimum size this table can be. If it is smaller than this, then the table must be bad and should be deleted or whatever. =cut sub minsize { return 54; } =head2 $t->XML_element($context, $depth, $key, $value) Handles date process for the XML exporter =cut sub XML_element { my ($self) = shift; my ($context, $depth, $key, $value) = @_; my ($fh) = $context->{'fh'}; my ($output, @time); my (@month) = qw(JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC); return $self->SUPER::XML_element(@_) unless ($key eq 'created' || $key eq 'modified'); @time = gmtime($self->getdate($key eq 'created')); $output = sprintf("%d/%s/%d %d:%d:%d", $time[3], $month[$time[4]], $time[5] + 1900, $time[2], $time[1], $time[0]); $fh->print("$depth<$key>$output</$key>\n"); $self; } =head2 $t->update Updates the head table based on the glyph data and the hmtx table =cut sub update { my ($self) = @_; my ($num, $i, $loc, $hmtx); my ($xMin, $yMin, $xMax, $yMax, $lsbx); return undef unless ($self->SUPER::update); $num = $self->{' PARENT'}{'maxp'}{'numGlyphs'}; return undef unless (defined $self->{' PARENT'}{'hmtx'} && defined $self->{' PARENT'}{'loca'}); $hmtx = $self->{' PARENT'}{'hmtx'}->read; $self->{' PARENT'}{'loca'}->update; $hmtx->update; # if we updated, then the flags will be set anyway. $lsbx = 1; for ($i = 0; $i < $num; $i++) { $loc = $self->{' PARENT'}{'loca'}{'glyphs'}[$i]; next unless defined $loc; $loc->read->update_bbox; $xMin = $loc->{'xMin'} if ($loc->{'xMin'} < $xMin || $i == 0); $yMin = $loc->{'yMin'} if ($loc->{'yMin'} < $yMin || $i == 0); $xMax = $loc->{'xMax'} if ($loc->{'xMax'} > $xMax); $yMax = $loc->{'yMax'} if ($loc->{'yMax'} > $yMax); $lsbx &= ($loc->{'xMin'} == $hmtx->{'lsb'}[$i]); } $self->{'xMin'} = $xMin; $self->{'yMin'} = $yMin; $self->{'xMax'} = $xMax; $self->{'yMax'} = $yMax; if ($lsbx) { $self->{'flags'} |= 2; } else { $self->{'flags'} &= ~2; } $self; } =head2 $t->getdate($is_create) Converts font modification time (or creation time if $is_create is set) to a 32-bit integer as returned from time(). Returns undef if the value is out of range, either before the epoch or after the maximum storable time. =cut sub getdate { my ($self, $is_create) = @_; my (@arr) = (@{$self->{$is_create ? 'created' : 'modified'}}); $arr[1] -= 2082844800; # seconds between 1/Jan/1904 and 1/Jan/1970 (midnight) if ($arr[1] < 0) { $arr[1] += 0xFFFFFFF; $arr[1]++; $arr[0]--; } return undef if $arr[0] != 0; return $arr[1]; } =head2 $t->setdate($time, $is_create) Sets the time information for modification (or creation time if $is_create is set) according to the 32-bit time information. =cut sub setdate { my ($self, $time, $is_create) = @_; my (@arr); $arr[1] = $time; if ($arr[1] >= 0x83DA4F80) { $arr[1] -= 0xFFFFFFFF; $arr[1]--; $arr[0]++; } $arr[1] += 2082844800; $self->{$is_create ? 'created' : 'modified'} = \@arr; $self; } 1; =head1 BUGS None known =head1 AUTHOR Martin Hosken L<http://scripts.sil.org/FontUtils>. =head1 LICENSING Copyright (c) 1998-2016, SIL International (http://www.sil.org) 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. =cut
Close