logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Authors

       See "AUTHORS" in SDL.

Bugs

       You tell me! at sdlperl.ath.cx

Category

       Extension

Description

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

Name

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

See Also

perl(1), SDL(2).

perl v5.40.0                                       2024-10-20                             pods::SDLx::SFont(3pm)

Support

       #sdl irc.perl.org

Synopsis

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

Usage

       see synopsis

return

See Also