3 # a SDL perl extension for SFont support
5 # Copyright (C) David J. Goehrig 2000,2002
16 use vars qw(@ISA $CurrentFont );
19 @ISA = qw(SDL::Surface);
24 my $class = ref($proto) || $proto;
25 my $self = \SDL::SFont::NewFont(shift);
32 SDL::FreeSurface($$self);
38 if ( $self->isa('SDL::Font')) {
39 SDL::SFont::UseFont($$self);
52 SDL::Font - a SDL perl extension
56 $font = new Font "Font.png";
61 L<SDL::Font> provides an interface to loading and using SFont style
62 fonts with L<SDL::Surface> objects.
70 L<perl> L<SDL::Surface>