Index


NAME

Top

SDLx::SFont - Extension making fonts out of images and printing them

CATEGORY

Top

Extension

SYNOPSIS

Top

  use SDLx::SFont;
  use SDLx::App;

   #Make a surface
   #Select a font
   my $d = SDLx::App->new( title => 'app', width => 200, height => 200, depth => 32 );

   my $font = SDLx::SFont->new('t/font.png');

   #print using $font

   SDLx::SFont::print_text( $d, 10, 10, 'Huh' );

   my $font2 = SDLx::SFont->new('t/font2.png');

   #print using font2

   SDLx::SFont::print_text( $d, 10, 10, 'Huh' );

   $font->use();

   #print using $font

   SDLx::SFont::print_text( $d, 10, 10, 'Huh' );

   #that is it folks ..

DESCRIPTION

Top

a simpler print function for old SDL::SFont dependency on Frozen-Bubble and Pangzero.

USAGE

Top

see synopsis

BUGS

Top

You tell me! at sdlperl.ath.cx

SUPPORT

Top

#sdl irc.perl.org

AUTHORS

Top

See /SDL.html#AUTHORS.

COPYRIGHT

Top

SEE ALSO

Top

perl(1), SDL(2).