Query: sdl::ttf::font
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
pods::SDL::TTF::Font(3pm) User Contributed Perl Documentation pods::SDL::TTF::Font(3pm)NAMESDL::TTF::Font - Font object type for SDL_ttfCATEGORYTTF, StructureMETHODSCONSTRUCTORmy $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);AUTHORSSee "AUTHORS" in SDL.SEE ALSOSDL::TTF perl v5.14.2 2012-05-28 pods::SDL::TTF::Font(3pm)