The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Image::ANSI::Font - The default font

SYNOPSIS

        $font = Image::ANSI::Font->new;

METHODS

new( [$chars] )

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

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]).

as_gd( )

Returns a GD::Font object.

clear( )

Clears any in-memory data.

width( )

Returns "8".

char( $index, [$char] )

Get / set a char in the font.

characters( )

returns the number of characters in the font

height( [$height] )

returns the number of scanlines in each of the characters in the font

AUTHOR

  • Brian Cassidy <bricas@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2004 by Brian Cassidy

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.