Windows NT KAMIDAKI 10.0 build 19045 (Windows 10) AMD64
Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.3.9
Server IP : 192.168.3.16 & Your IP : 216.73.216.140
Domains :
Cant Read [ /etc/named.conf ]
User : SISTEMA
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
C: /
xampp /
perl /
vendor /
lib /
Imager /
Font /
Delete
Unzip
Name
Size
Permission
Date
Action
BBox.pm
5.1
KB
-rw-rw-rw-
2020-06-13 09:38
FT2.pm
6.05
KB
-rw-rw-rw-
2020-06-13 10:11
FreeType2.pm
1.06
KB
-rw-rw-rw-
2020-06-13 09:38
Image.pm
3.75
KB
-rw-rw-rw-
2020-06-13 09:39
T1.pm
6.26
KB
-rw-rw-rw-
2020-06-13 10:13
Test.pm
1.76
KB
-rw-rw-rw-
2020-06-13 10:19
Truetype.pm
3.22
KB
-rw-rw-rw-
2020-06-13 09:40
Type1.pm
374
B
-rw-rw-rw-
2020-06-13 10:24
W32.pm
1.86
KB
-rw-rw-rw-
2020-06-13 09:34
Win32.pm
408
B
-rw-rw-rw-
2020-06-13 10:14
Wrap.pm
10.11
KB
-rw-rw-rw-
2020-06-13 10:15
Save
Rename
package Imager::Font::Test; use 5.006; use strict; our $VERSION = "1.002"; use base 'Imager::Font'; sub new { my ($class, %opts) = @_; bless \%opts, shift; } sub _draw { my ($self, %input) = @_; my $text = $input{string}; my $ppn = int($input{size} * 0.5 + 0.5); my $desc = int($input{size} * 0.3 + 0.5); my $asc = $input{size} - $desc; my $width = $ppn * length $text; my $x = $input{x}; my $y = $input{'y'}; $input{align} and $y -= $asc; $input{image}->box(color => $input{color}, xmin => $x, ymin => $y, xmax => $x + $width-1, ymax => $y + $input{size} - 1); return 1; } sub _bounding_box { my ($self, %input) = @_; my $text = $input{string}; my $ppn = int($input{size} * 0.5 + 0.5); my $desc = int($input{size} * 0.3 + 0.5); my $asc = $input{size} - $desc; return ( 0, -$desc, $ppn * length $text, $asc, -$desc, $asc, $ppn * length $text, 0 ); } sub has_chars { my ($self, %input) = @_; my $text = $input{string}; defined $text or return Imager->_set_error("has_chars: No string parameter supplied"); return (1) x length $text; } sub face_name { "test"; } sub glyph_names { my ($self, %input) = @_; my $text = $input{string}; defined $text or return Imager->_set_error("glyph_names: No string parameter supplied"); return (1) x length $text; } 1; =head1 NAME Imager::Font::Test - font driver producing consistent output for tests. =head1 SYNOPSIS my $font = Imager::Font::Test->new; # use $font where you use other fonts =head1 DESCRIPTION Imager::Font::Test is intended to produce consistent output without being subject to the inconsistent output produced by different versions of font libraries. The output is simple box for the whole string. =head1 AUTHOR Tony Cook <tonyc@cpan.org> =cut