<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Legacy%3AFunctions%2FFonts</id>
		<title>Legacy:Functions/Fonts - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Legacy%3AFunctions%2FFonts"/>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Functions/Fonts&amp;action=history"/>
		<updated>2026-05-10T12:44:12Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>http://wiki.spheredev.org/index.php?title=Legacy:Functions/Fonts&amp;diff=895&amp;oldid=prev</id>
		<title>Apollolux: /* Saving to disk */ fix link</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Functions/Fonts&amp;diff=895&amp;oldid=prev"/>
				<updated>2013-06-24T21:36:49Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Saving to disk: &lt;/span&gt; fix link&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:36, 24 June 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot; &gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Saving to disk ====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Saving to disk ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:Font/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;clone&lt;/del&gt;|Font.save]](filename): saves the Font_object as a font using the filename 'filename'&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[API:Font/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;save&lt;/ins&gt;|Font.save]](filename): saves the Font_object as a font using the filename 'filename'&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Apollolux</name></author>	</entry>

	<entry>
		<id>http://wiki.spheredev.org/index.php?title=Legacy:Functions/Fonts&amp;diff=480&amp;oldid=prev</id>
		<title>Apollolux: created</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Functions/Fonts&amp;diff=480&amp;oldid=prev"/>
				<updated>2013-05-22T17:32:56Z</updated>
		
		<summary type="html">&lt;p&gt;created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Fonts ==&lt;br /&gt;
&lt;br /&gt;
* Sphere [[API:Font|Font]] object: The graphical representation of text.&lt;br /&gt;
* [[API:GetSystemFont|GetSystemFont]](): Load the default system font.&lt;br /&gt;
* [[API:LoadFont|LoadFont]](): Load a font file.&lt;br /&gt;
&lt;br /&gt;
=== Font object ===&lt;br /&gt;
&lt;br /&gt;
* [[API:Font/clone|Font.clone]](): returns a copy of 'font_object'&lt;br /&gt;
&lt;br /&gt;
==== Drawing text ====&lt;br /&gt;
&lt;br /&gt;
* [[API:Font/drawText|Font.drawText]](''x'', ''y'', ''text''): Draw ''text'' at (''x'', ''y'') using the font.&lt;br /&gt;
* [[API:Font/drawTextBox|Font.drawTextBox]](''x'', ''y'', ''width'', ''height'', ''y_offset'', ''text''): Draw wrapped ''text'', shifted up/down by ''y_offset'', in the box (''x'', ''y'', ''width'', ''height'').&lt;br /&gt;
* [[API:Font/drawZoomedText|Font.drawZoomedText]](''x'', ''y'', ''scale'', ''text''): Draw scaled text with upper-left corner (''x'', ''y'') using the font.&lt;br /&gt;
* [[API:Font/wordWrapString|Font.wordWrapString]](''string'', ''width''): Splits a string into an array of lines as if it were wrapped using [[API:Font/drawTextBox|Font.drawTextBox]]().&lt;br /&gt;
&lt;br /&gt;
==== Font size info ====&lt;br /&gt;
&lt;br /&gt;
* [[API:Font/getHeight|Font.getHeight]](): Get the height of chars in the font, in pixels.&lt;br /&gt;
  &lt;br /&gt;
* [[API:Font/getStringWidth|Font.getStringWidth]](''string''): Determine the width of a ''string'' drawn with the font, in pixels.&lt;br /&gt;
* [[API:Font/getStringHeight|Font.getStringHeight]](''string'', ''width''): Determine the height of the ''string'' as if it was drawn by [[API:Font/drawTextBox|Font.drawTextBox]]() with ''width''.&lt;br /&gt;
&lt;br /&gt;
==== Font color masking ====&lt;br /&gt;
&lt;br /&gt;
* [[API:Font/getColorMask|Font.getColorMask]](): Get the color mask being used by the font.&lt;br /&gt;
* [[API:Font/setColorMask|Font.setColorMask]](''color''): Set the color mask for a font to ''color'' (see [[color masking]]).&lt;br /&gt;
&lt;br /&gt;
==== Font characters ====&lt;br /&gt;
&lt;br /&gt;
* [[API:Font/getCharacterImage|Font.getCharacterImage]](code): returns the image in the font_object of the character based on the code, e.g. 65 is 'A'&lt;br /&gt;
* [[API:Font/setCharacterImage|Font.setCharacterImage]](code, image): sets the character image in the font_object based on the code&lt;br /&gt;
&lt;br /&gt;
==== Saving to disk ====&lt;br /&gt;
&lt;br /&gt;
* [[API:Font/clone|Font.save]](filename): saves the Font_object as a font using the filename 'filename'&lt;/div&gt;</summary>
		<author><name>Apollolux</name></author>	</entry>

	</feed>