Merge branch 'master' of git.shadowcat.co.uk:SDL-Site
[sdlgit/SDL-Site.git] / pages / SDLx-SFont.html-inc
CommitLineData
30fd24c2 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="#SYNOPSIS">SYNOPSIS</a></li>
8<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
9<li><a href="#USAGE">USAGE</a></li>
10<li><a href="#BUGS">BUGS</a></li>
11<li><a href="#SUPPORT">SUPPORT</a></li>
c7e8d3c6 12<li><a href="#AUTHORS">AUTHORS</a></li>
30fd24c2 13<li><a href="#COPYRIGHT">COPYRIGHT</a></li>
14<li><a href="#SEE_ALSO">SEE ALSO</a>
15</li>
16</ul><hr />
17<!-- INDEX END -->
18
19<h1 id="NAME">NAME</h1><p><a href="#TOP" class="toplink">Top</a></p>
20<div id="NAME_CONTENT">
21<p>SDLx::SFont - Extension making fonts out of images and printing them</p>
22
23</div>
24<h1 id="CATEGORY">CATEGORY </h1><p><a href="#TOP" class="toplink">Top</a></p>
25<div id="CATEGORY_CONTENT">
26<p>Extension</p>
27
28</div>
29<h1 id="SYNOPSIS">SYNOPSIS</h1><p><a href="#TOP" class="toplink">Top</a></p>
30<div id="SYNOPSIS_CONTENT">
31<pre> use SDLx::SFont;
32 use SDLx::App;
33
34 #Make a surface
35 #Select a font
505f308d 36 my $d = SDLx::App-&gt;new( title =&gt; 'app', width =&gt; 200, height =&gt; 200, depth =&gt; 32 );
30fd24c2 37
38 my $font = SDLx::SFont-&gt;new('t/font.png');
39
40 #print using $font
41
42 SDLx::SFont::print_text( $d, 10, 10, 'Huh' );
43
44 my $font2 = SDLx::SFont-&gt;new('t/font2.png');
45
46 #print using font2
47
48 SDLx::SFont::print_text( $d, 10, 10, 'Huh' );
49
50 $font-&gt;use();
51
52 #print using $font
53
54 SDLx::SFont::print_text( $d, 10, 10, 'Huh' );
55
56 #that is it folks ..
57
58</pre>
59
60</div>
61<h1 id="DESCRIPTION">DESCRIPTION</h1><p><a href="#TOP" class="toplink">Top</a></p>
62<div id="DESCRIPTION_CONTENT">
63<p>a simpler print function for old SDL::SFont dependency on Frozen-Bubble and Pangzero.</p>
64
65</div>
66<h1 id="USAGE">USAGE</h1><p><a href="#TOP" class="toplink">Top</a></p>
67<div id="USAGE_CONTENT">
68<p>see synopsis</p>
69
70</div>
71<h1 id="BUGS">BUGS</h1><p><a href="#TOP" class="toplink">Top</a></p>
72<div id="BUGS_CONTENT">
73<p>You tell me! at sdlperl.ath.cx</p>
74
75</div>
76<h1 id="SUPPORT">SUPPORT</h1><p><a href="#TOP" class="toplink">Top</a></p>
77<div id="SUPPORT_CONTENT">
78<p>#sdl irc.perl.org</p>
79
80</div>
c7e8d3c6 81<h1 id="AUTHORS">AUTHORS</h1><p><a href="#TOP" class="toplink">Top</a></p>
82<div id="AUTHORS_CONTENT">
1dbe1697 83<p>See <a href="/SDL.html#AUTHORS">/SDL.html#AUTHORS</a>.</p>
30fd24c2 84
85</div>
86<h1 id="COPYRIGHT">COPYRIGHT</h1><p><a href="#TOP" class="toplink">Top</a></p>
87<div id="COPYRIGHT_CONTENT">
88<p>This program is free software; you can redistribute
89it and/or modify it under the same terms as Perl itself.</p>
90<p>The full text of the license can be found in the
91LICENSE file included with this module.</p>
92
93
94
95
96
97</div>
98<h1 id="SEE_ALSO">SEE ALSO</h1><p><a href="#TOP" class="toplink">Top</a></p>
99<div id="SEE_ALSO_CONTENT">
100<p>perl(1), SDL(2).</p>
101
102</div>
103</div>