Debian Codegraph @

lib/Chart/Property/DataType/Font.pm

raw
1
2 #
3
4 use v5.12;
5
6 package Chart::Property::DataType::Font;
7 our $VERSION = 'v2.403.9';
8
9 use Carp;
10
11 ## constructor #########################################################
12
13 sub new {
14 my $pkg = shift;
15 my $def = shift;
16 return unless ref $def eq 'HASH';
17 bless {};
18 }
19
20 ## getter ##############################################################
21
22 sub name {
23
24 }
25
26 sub bold {
27
28 }
29
30 sub size {
31
32 }
33
34 sub unicode {
35 }
36
37 sub truetype {
38
39 }
40
41
42 1;
43
44 __END__
45
46 =pod
47
48 =head1 NAME
49
50 Chart::Font - read only single font holding objects
51
52 =head1 SYNOPSIS
53
54 my $red = Chart::Color->new('red');
55 say $red->add('blue')->name; # magenta, mixed in RGB space
56 Chart::Color->new( 0, 0, 255)->hsl # 240, 100, 50 = blue
57 $blue->blend_with({H=> 0, S=> 0, L=> 80}, 0.1);# mix blue with a little grey
58 $red->gradient( '#0000FF', 10); # 10 colors from red to blue
59 $red->complementary( 3 ); # get fitting red green and blue
60
61 =head1 DESCRIPTION
62
63
64
65 =head1 COPYRIGHT & LICENSE
66
67 Copyright 2022 Herbert Breunung.
68
69 This program is free software; you can redistribute it and/or modify it
70 under same terms as Perl itself.
71
72 =head1 AUTHOR
73
74 Herbert Breunung, <[email protected]>
75
76 =cut
77
78
79 __END__
80 $im->string( GD::Font->Tiny , 20, 20, 'Tiny', 2);
81 $im->string( GD::Font->Small , 20, 50, 'Small', 1);
82 $im->string( GD::Font->MediumBold , 20, 80, 'MediumBold', 2);
83 $im->string( GD::Font->Large , 20, 110, 'Large', 1);
84 $im->string( GD::Font->Giant , 20, 140, 'Giant', 2);
85
86 gdTinyFont
87 gdSmallFont
88 gdMediumBoldFont
89 gdLargeFont
90 gdGiantFont