pods::...::Font(3pm)

πŸ“¦ version 2.548, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

SDL::TTF::Font β€” the font object type for SDL_ttf, and yes bestie this is the page for pods::...::Font(3pm) from the User Contributed Perl Documentation. We're so back. πŸ¦‹

πŸŽ€ CATEGORY πŸŽ€

TTF, Structure. Both. It's giving range. ✨

✨ METHODS ✨

🫢 CONSTRUCTOR 🫢

Okay so you can make a font object two ways, no cap:

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

πŸ‘‘ AUTHORS πŸ‘‘

See "AUTHORS" in SDL. Slay. πŸ’…

🌈 SEE ALSO 🌈

SDL::TTF β€” go look, iykyk. 🫢


Cute sign-off: this page is from perl v5.42.0 and dated 2024-05-01 β€” literally iconic, periodt. πŸ’–

πŸ“¦ where this page comes from