[Slim-Checkins] r9756 - in /branches/6.5/server/HTML/EN/html/docs:
display.html fonts.html
adrian at svn.slimdevices.com
adrian at svn.slimdevices.com
Fri Sep 15 13:06:18 PDT 2006
Author: adrian
Date: Fri Sep 15 13:06:16 2006
New Revision: 9756
URL: http://svn.slimdevices.com?rev=9756&view=rev
Log:
Bug: N/A
Description: minor display doc update, merge -r 9752:9755 from trunk
Modified:
branches/6.5/server/HTML/EN/html/docs/display.html
branches/6.5/server/HTML/EN/html/docs/fonts.html
Modified: branches/6.5/server/HTML/EN/html/docs/display.html
URL: http://svn.slimdevices.com/branches/6.5/server/HTML/EN/html/docs/display.html?rev=9756&r1=9755&r2=9756&view=diff
==============================================================================
--- branches/6.5/server/HTML/EN/html/docs/display.html (original)
+++ branches/6.5/server/HTML/EN/html/docs/display.html Fri Sep 15 13:06:16 2006
@@ -648,10 +648,10 @@
<p>For example:</p>
<pre>
-Slim::Player::SqueezeboxG::setCustomChar( 'my-icon', "\x02", 'icon.1' );
-</pre>
-
-<p>This registers the symbol name 'my-icon' for character "\x02" within the font file
+Slim::Player::Graphics::setCustomChar( 'my-icon', chr(2), 'icon.1' );
+</pre>
+
+<p>This registers the symbol name 'my-icon' for character chr(2) within the font file
'icon.1'. This may then be included within a display using:<p>
<pre>
@@ -669,7 +669,7 @@
as part of the custom character name.</p>
<pre>
-Slim::Player::SqueezeboxG::setCustomChar( 'my-icon', "\x02" );
+Slim::Player::Graphics::setCustomChar( 'my-icon', chr(2) );
$display = {
'overlay' => [ $client->symbols('my-icon') ],
@@ -677,7 +677,7 @@
};
</pre>
-<p>Note: Slim::Player::SqueezeboxG::setCustomChar should only be
+<p>Note: Slim::Player::Graphics::setCustomChar should only be
called once a graphics player is attached - e.g. by calling from the
setMode of a plugin if it has not been previously called [see SlimTris
for an example of this for text custom characters].</p>
Modified: branches/6.5/server/HTML/EN/html/docs/fonts.html
URL: http://svn.slimdevices.com/branches/6.5/server/HTML/EN/html/docs/fonts.html?rev=9756&r1=9755&r2=9756&view=diff
==============================================================================
--- branches/6.5/server/HTML/EN/html/docs/fonts.html (original)
+++ branches/6.5/server/HTML/EN/html/docs/fonts.html Fri Sep 15 13:06:16 2006
@@ -69,11 +69,11 @@
restarted before they are available to the server.
<p>Custom fonts files define characters for the fontname specified by
-the file name. The first character "\x00" defines the inter character
-spacing and following characters define characters "\x01", "\x02",
-"\x03" etc.
-<p>Note as this custom font files define new fonts no
-characters are reserved and so character "\x01" onwards is normally used.
+the file name. The first character chr(0) defines the inter character
+spacing and following characters define characters chr(1), chr(2),
+chr(3) etc.
+<p>Note also that character 0x0a [chr(10)] is reserved and should not
+be used, as are characters 0x1b, 0x1c, 0x1d [chr(27) - chr(29].
<p>Although a plugin may build strings using character values, it is
normal to register a name for each character using
Slim::Display::Graphics::setCustomChar.
More information about the checkins
mailing list