Commit | Line | Data |
3ad5a97a |
1 | <div class="pod"> |
2 | <!-- INDEX START --> |
3 | <h3 id="TOP">Index</h3> |
4 | |
5 | <ul><li><a href="#NAME">NAME</a></li> |
6 | <li><a href="#CATEGORY">CATEGORY</a></li> |
7 | <li><a href="#METHODS">METHODS</a></li> |
8 | <li><a href="#CONSTRUCTOR">CONSTRUCTOR</a></li> |
c7e8d3c6 |
9 | <li><a href="#AUTHORS">AUTHORS</a></li> |
3ad5a97a |
10 | <li><a href="#SEE_ALSO">SEE ALSO</a> |
11 | </li> |
12 | </ul><hr /> |
13 | <!-- INDEX END --> |
14 | |
15 | <h1 id="NAME">NAME</h1><p><a href="#TOP" class="toplink">Top</a></p> |
16 | <div id="NAME_CONTENT"> |
17 | <p>SDL::TTF::Font - Font object type for SDL_ttf</p> |
18 | |
19 | </div> |
20 | <h1 id="CATEGORY">CATEGORY</h1><p><a href="#TOP" class="toplink">Top</a></p> |
21 | <div id="CATEGORY_CONTENT"> |
22 | <p>TTF, Structure</p> |
23 | |
24 | </div> |
25 | <h1 id="METHODS">METHODS</h1><p><a href="#TOP" class="toplink">Top</a></p> |
26 | <div id="METHODS_CONTENT"> |
27 | |
28 | </div> |
29 | <h1 id="CONSTRUCTOR">CONSTRUCTOR</h1><p><a href="#TOP" class="toplink">Top</a></p> |
30 | <div id="CONSTRUCTOR_CONTENT"> |
31 | <pre> my $font = SDL::TTF::Font->new($font_file, $point_size); |
32 | |
33 | my $font = SDL::TTF::Font->new($font_file, $point_size, $face_index); |
34 | |
35 | </pre> |
fcf60e89 |
36 | <p>Load file for use as a font, at the given size. This can load TTF, OTF and |
37 | FON files. You can specify the face index of a font file containing multiple |
38 | faces.</p> |
3ad5a97a |
39 | <p>Returns: a <a href="SDL-TTF-Font.html">SDL::TTF::Font</a> object. <code>undef</code> is returned on errors.</p> |
40 | <p>Example:</p> |
41 | <pre> use SDL::TTF::Font; |
42 | |
43 | my $font = SDL::TTF::Font->new('arial.ttf', 24); |
44 | |
45 | </pre> |
46 | |
47 | </div> |
c7e8d3c6 |
48 | <h1 id="AUTHORS">AUTHORS</h1><p><a href="#TOP" class="toplink">Top</a></p> |
49 | <div id="AUTHORS_CONTENT"> |
1dbe1697 |
50 | <p>See <a href="/SDL.html#AUTHORS">/SDL.html#AUTHORS</a>.</p> |
3ad5a97a |
51 | |
52 | </div> |
53 | <h1 id="SEE_ALSO">SEE ALSO</h1><p><a href="#TOP" class="toplink">Top</a></p> |
54 | <div id="SEE_ALSO_CONTENT"> |
55 | <p><a href="SDL-TTF.html">SDL::TTF</a></p> |
56 | |
57 | </div> |
58 | </div> |