updated docs
[sdlgit/SDL-Site.git] / pages / SDL-TTF-Font.html-inc
CommitLineData
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>
d5943b68 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-&gt;new($font_file, $point_size);
32
33 my $font = SDL::TTF::Font-&gt;new($font_file, $point_size, $face_index);
34
35</pre>
36<p>Load file for use as a font, at the given size. This can load TTF and FON files.
37You can specify the face index of a font file containing multiple faces.</p>
38<p>Returns: a <a href="SDL-TTF-Font.html">SDL::TTF::Font</a> object. <code>undef</code> is returned on errors.</p>
39<p>Example:</p>
40<pre> use SDL::TTF::Font;
41
42 my $font = SDL::TTF::Font-&gt;new('arial.ttf', 24);
43
44</pre>
45
46</div>
d5943b68 47<h1 id="AUTHORS">AUTHORS</h1><p><a href="#TOP" class="toplink">Top</a></p>
48<div id="AUTHORS_CONTENT">
49<p>See <b>AUTHORS</b> in <cite>SDL</cite>.</p>
3ad5a97a 50
51</div>
52<h1 id="SEE_ALSO">SEE ALSO</h1><p><a href="#TOP" class="toplink">Top</a></p>
53<div id="SEE_ALSO_CONTENT">
54<p><a href="SDL-TTF.html">SDL::TTF</a></p>
55
56</div>
57</div>