Image::ANSI::Font - A base class for fonts


Image-ANSI documentation  | view source Contained in the Image-ANSI distribution.

Index


NAME

Top

Image::ANSI::Font - A base class for fonts

SYNOPSIS

Top

	# use 8x8, 8x16, or your own
	$font = Image::ANSI::Font::8x8->new;

METHODS

Top

new( [$chars] )

Creates a new Image::ANSI::Font object.

clear( )

Clears any in-memory data.

chars( [$chars] )

sets the character set. $chars should be an array (either 256 or 512 [the number of characters]) of arrays (from 1 to 32 [1 bitmask per scanline]).

char( $index, [$char] )

Get / set a char in the font.

intensity_map( )

Returns an array ref of intensity numbers (one for each character) for use when creating a thumbnail image.

as_gd( )

Returns a GD::Font object.

characters( [$characters] )

Returns or sets the number of characters in the font

width( [$width] )

Returns or sets the width of the font.

height( [$height] )

Returns or sets the number of scanlines in each of the characters in the font

AUTHOR

Top

* Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Top


Image-ANSI documentation  | view source Contained in the Image-ANSI distribution.