You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="log">Epydoc started at Thu Dec 13 12:51:19 2012</p><divclass="log-block"><h2class="log-hdr">In C:\Users\Kyle\Dropbox\Python\python-tdl\tdl\__init__.py:
13
+
<pclass="log">Epydoc started at Mon Dec 17 00:44:46 2012</p><divclass="log-block"><h2class="log-hdr">In C:\Users\Kyle\Dropbox\Python\python-tdl\tdl\__init__.py:
14
14
Source code parsing failed (but introspection was successful).</h2><divclass="log-error"><b>Error</b>:
15
-
Error during parsing: invalid syntax (C:\Users\Kyle\Dropbox\Python\python-tdl\tdl\__init__.py, line 49) -- Attempted relative import in non-package, or beyond toplevel package</div>
15
+
Error during parsing: invalid syntax (C:\Users\Kyle\Dropbox\Python\python-tdl\tdl\__init__.py, line 53) -- Attempted relative import in non-package, or beyond toplevel package</div>
<p>Changes the font to be used for this session. This should be called
576
574
before <ahref="tdl-module.html#init" class="link">tdl.init</a></p>
575
+
<p>If the font specifies its size in its filename (i.e. font_NxN.png)
576
+
then this function can auto-detect the tileset formatting and the
577
+
parameters columns and rows can be left None.</p>
577
578
<p>While it's possible you can change the font mid program it can
578
579
sometimes break in rare circumstances. So use caution when doing
579
580
this.</p>
580
581
<dlclass="fields">
581
582
<dt>Parameters:</dt>
582
583
<dd><ulclass="nomargin-top">
583
584
<li><strongclass="pname"><code>path</code></strong> (string) - Must be a string filepath where a bmp or png file is found.</li>
584
-
<li><strongclass="pname"><code>tileWidth</code></strong> (int) - The width of an individual tile.</li>
585
-
<li><strongclass="pname"><code>tileHeight</code></strong> (int) - The height of an individual tile.</li>
586
-
<li><strongclass="pname"><code>colomn</code></strong> (boolean) - Defines if the characer order goes along the rows or colomns. It
585
+
<li><strongclass="pname"><code>columns</code></strong> (int) - Number of columns in the tileset.
586
+
<p>Can be left None for auto-detection.</p></li>
587
+
<li><strongclass="pname"><code>rows</code></strong> (int) - Number of rows in the tileset.
588
+
<p>Can be left None for auto-detection.</p></li>
589
+
<li><strongclass="pname"><code>columnFirst</code></strong> (boolean) - Defines if the characer order goes along the rows or colomns. It
587
590
should be True if the charater codes 0-15 are in the first
588
-
column. And should be False if the characters 0-15 are in the
591
+
column. And should be False if the characters 0-15 are in the
589
592
first row.</li>
590
593
<li><strongclass="pname"><code>greyscale</code></strong> (boolean) - Creates an anti-aliased font from a greyscale bitmap. Otherwise
591
-
it uses the alpha channel for anti-aliasing.</li>
592
-
<li><strongclass="pname"><code>altLayout</code></strong> (boolean) - An alternative layout with space in the upper left corner. The
594
+
it uses the alpha channel for anti-aliasing.
595
+
<p>Unless you actually need anti-aliasing from a font you know
596
+
uses a smooth greyscale channel you should leave this on
597
+
False.</p></li>
598
+
<li><strongclass="pname"><code>altLayout</code></strong> (boolean) - An alternative layout with space in the upper left corner. The
593
599
colomn parameter is ignored if this is True, find examples of
594
-
this layout in the font/ directory included with the python-tdl
595
-
source.</li>
600
+
this layout in the font/libtcod/ directory included with the
601
+
python-tdl source.</li>
596
602
</ul></dd>
597
603
<dt>Raises:</dt>
598
604
<dd><ulclass="nomargin-top">
599
-
<li><code><strongclass='fraise'><ahref="tdl.TDLError-class.html">TDLError</a></strong></code> - Will be raised if no file is found at path.</li>
605
+
<li><code><strongclass='fraise'><ahref="tdl.TDLError-class.html">TDLError</a></strong></code> - Will be raised if no file is found at path or if auto- detection
0 commit comments