SDL::TTF::Font3pm
Font object type for sdl_ttf
Category
TTF, Structure
Methods
Constructor
my $font = SDL::TTF::Font->new($font_file, $point_size);my $font = SDL::TTF::Font->new($font_file, $point_size, $face_index);
Load file for use as a font, at the given size. This can load TTF, OTF and FON files. You can specify the face index of a font file containing multiple faces.
Returns: a SDL::TTF::Font object. "undef" is returned on errors.
Example:
use SDL::TTF::Font;my $font = SDL::TTF::Font->new('arial.ttf', 24);
Releases
7 releases since Debian 7 (Wheezy); the text changed 6 times.