Image::TextMode::Font - A base class for text mode fonts


Image-TextMode documentation Contained in the Image-TextMode distribution.

Index


Code Index:

NAME

Top

Image::TextMode::Font - A base class for text mode fonts

DESCRIPTION

Top

Represents a font in text mode. That is, an array of characters represented by an array of byte scanlines.

ACCESSORS

Top

* width - The width of the font
* height - The height of the font
* chars - An array of array of scanline data

METHODS

Top

new( %args )

Creates a new font object.

AUTHOR

Top

Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Top


Image-TextMode documentation Contained in the Image-TextMode distribution.

package Image::TextMode::Font;

use Moose;

has 'width' => ( is => 'rw', isa => 'Int', default => 0 );

has 'height' => ( is => 'rw', isa => 'Int', default => 0 );

has 'chars' => ( is => 'rw', isa => 'ArrayRef', default => sub { [] } );

no Moose;

__PACKAGE__->meta->make_immutable;

1;