File Coverage

blib/lib/Image/TextMode/Font.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


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