Brian Cassidy > Image-ANSI > Image::ANSI::Font

Download:
Image-ANSI-0.10.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.10   Source  

NAME ^

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

SYNOPSIS ^

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

METHODS ^

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 ^

COPYRIGHT AND LICENSE ^

Copyright 2004-2009 by Brian Cassidy

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

syntax highlighting: