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

SDL::TTF::Font - Font object type for SDL_ttf

Authors

       See "AUTHORS" in SDL.

Category

       TTF, Structure

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);

Methods

Name

       SDL::TTF::Font - Font object type for SDL_ttf

See Also

       SDL::TTF

perl v5.40.0                                       2024-10-20                          pods::SDL::TTF::Font(3pm)

See Also