1SDLx::SFont(3)        User Contributed Perl Documentation       SDLx::SFont(3)
2
3
4

NAME

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

CATEGORY

9       Extension
10

SYNOPSIS

12         use SDLx::SFont;
13         use SDLx::App;
14
15          #Make a surface
16          #Select a font
17          my $d = SDLx::App->new( title => 'app', width => 200, height => 200, depth => 32 );
18
19          my $font = SDLx::SFont->new('t/font.png');
20
21          #print using $font
22
23          SDLx::SFont::print_text( $d, 10, 10, 'Huh' );
24
25          my $font2 = SDLx::SFont->new('t/font2.png');
26
27          #print using font2
28
29          SDLx::SFont::print_text( $d, 10, 10, 'Huh' );
30
31          $font->use();
32
33          #print using $font
34
35          SDLx::SFont::print_text( $d, 10, 10, 'Huh' );
36
37          #that is it folks ..
38

DESCRIPTION

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

USAGE

44       see synopsis
45

BUGS

47       You tell me! at sdlperl.ath.cx
48

SUPPORT

50       #sdl irc.perl.org
51

AUTHORS

53       See "AUTHORS" in SDL.
54
56       This program is free software; you can redistribute it and/or modify it
57       under the same terms as Perl itself.
58
59       The full text of the license can be found in the LICENSE file included
60       with this module.
61

SEE ALSO

63       perl(1), SDL(2).
64
65
66
67perl v5.30.0                      2019-07-26                    SDLx::SFont(3)
Impressum