VOOZH about

URL: https://manpages.org/sdlttffont/3

⇱ man SDL::TTF::Font (3): Font object type for SDL_ttf


SDL::TTF::Font(3) Font object type for SDL_ttf

CATEGORY

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 and files. You can specify the face index of a font file containing multiple faces.

Returns: a SDL::TTF::Font object. is returned on errors.

Example:

 use SDL::TTF::Font;
 
 my $font = SDL::TTF::Font->new('arial.ttf', 24);

AUTHORS

See `` in .