| 1 | package Image::TextMode::Font; | ||
| 2 | |||
| 3 | 30 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 30 | ▶ | use Types::Standard qw( Int ArrayRef ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 30 | has 'width' => ( is => 'rw', isa => Int, default => 0 ); | |
| 7 | |||
| 8 | 30 | has 'height' => ( is => 'rw', isa => Int, default => 0 ); | |
| 9 | |||
| 10 | 0 | ▶ | has 'chars' => ( is => 'rw', isa => ArrayRef, default => sub { [] } ); |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 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 E<lt>bricas@cpan.orgE<gt> | ||
| 42 | |||
| 43 | =head1 COPYRIGHT AND LICENSE | ||
| 44 | |||
| 45 | Copyright 2008-2015 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 | 30 | 1; | |