pods::...::Font(3pm)
π 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
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: perl-SDL 2.548-bp160.1.13 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms