line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Image::TextMode::Font; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1515
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
has 'width' => ( is => 'rw', isa => 'Int', default => 0 ); |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
has 'height' => ( is => 'rw', isa => 'Int', default => 0 ); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has 'chars' => ( is => 'rw', isa => 'ArrayRef', default => sub { [] } ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
no Moose; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 NAME |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Image::TextMode::Font - A base class for text mode fonts |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 DESCRIPTION |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Represents a font in text mode. That is, an array of characters represented |
22
|
|
|
|
|
|
|
by an array of byte scanlines. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 ACCESSORS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=over 4 |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=item * width - The width of the font |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item * height - The height of the font |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=item * chars - An array of array of scanline data |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=back |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 METHODS |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head2 new( %args ) |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Creates a new font object. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 AUTHOR |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Brian Cassidy E<lt>bricas@cpan.orgE<gt> |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Copyright 2008-2013 by Brian Cassidy |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
51
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=cut |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
1; |