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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
#
use v5.12;
package Chart::Property::DataType::Font;
our $VERSION = 'v2.403.9';
use Carp;
## constructor #########################################################
sub new {
my $pkg = shift;
my $def = shift;
return unless ref $def eq 'HASH';
bless {};
}
## getter ##############################################################
sub name {
}
sub bold {
}
sub size {
}
sub unicode {
}
sub truetype {
}
1;
__END__
=pod
=head1 NAME
Chart::Font - read only single font holding objects
=head1 SYNOPSIS
my $red = Chart::Color->new('red');
say $red->add('blue')->name; # magenta, mixed in RGB space
Chart::Color->new( 0, 0, 255)->hsl # 240, 100, 50 = blue
$blue->blend_with({H=> 0, S=> 0, L=> 80}, 0.1);# mix blue with a little grey
$red->gradient( '#0000FF', 10); # 10 colors from red to blue
$red->complementary( 3 ); # get fitting red green and blue
=head1 DESCRIPTION
=head1 COPYRIGHT & LICENSE
Copyright 2022 Herbert Breunung.
This program is free software; you can redistribute it and/or modify it
under same terms as Perl itself.
=head1 AUTHOR
Herbert Breunung, <lichtkind@cpan.org>
=cut
__END__
$im->string( GD::Font->Tiny , 20, 20, 'Tiny', 2);
$im->string( GD::Font->Small , 20, 50, 'Small', 1);
$im->string( GD::Font->MediumBold , 20, 80, 'MediumBold', 2);
$im->string( GD::Font->Large , 20, 110, 'Large', 1);
$im->string( GD::Font->Giant , 20, 140, 'Giant', 2);
gdTinyFont
gdSmallFont
gdMediumBoldFont
gdLargeFont
gdGiantFont
|