[Laszlo-checkins] r11301 - in openlaszlo/trunk/docs/src/developers: . programs
hqm@openlaszlo.org
hqm at openlaszlo.org
Wed Oct 1 14:04:28 PDT 2008
Author: hqm
Date: 2008-10-01 14:04:27 -0700 (Wed, 01 Oct 2008)
New Revision: 11301
Removed:
openlaszlo/trunk/docs/src/developers/programs/fonts-$20.lzx
openlaszlo/trunk/docs/src/developers/programs/fonts-$21.lzx
Modified:
openlaszlo/trunk/docs/src/developers/fonts.dbk
Log:
Change 20081001-hqm-w by hqm at badtzmaru.home on 2008-10-01 11:48:12 EDT
in /Users/hqm/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: remove obsolete section on canvas default font in dguide
New Features:
Bugs Fixed:
Technical Reviewer: liorio
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
There seems to already be an up to date section about setting the
default canvas font, (Chapter 20.1.3) using the <canvas font="xxx">
attribute. The later section 20.4.3 on setting the default font is
obsolete and no longer works as described, so I removed it.
Tests:
Modified: openlaszlo/trunk/docs/src/developers/fonts.dbk
===================================================================
--- openlaszlo/trunk/docs/src/developers/fonts.dbk 2008-10-01 20:45:23 UTC (rev 11300)
+++ openlaszlo/trunk/docs/src/developers/fonts.dbk 2008-10-01 21:04:27 UTC (rev 11301)
@@ -468,91 +468,8 @@
<para role="fixme"><remark role="fixme"><emphasis role="para-label">FIXME: </emphasis>Note: sometime in these examples we set the text to be resizable. Ask Adam or Sarah why</remark></para>
- <para/></section></section><section><title>The default font</title>
- <para>All Laszlo applications come bundled with a default font. The name of this
- font is 'default'. This font is actually the <literal>verity11</literal> pseudo-pixel font and is designed
- to look well when antialiased. </para>
-<?ignore It gets included as if you had the following line
- in your application:
- </p>
-
-<example title="The automatically included default font" extract="false">
-<font name="default" src="verity/verity11.ttf"/>
-</example>
-
- <p>
- The verity fonts are intended to mimic the outline vera fonts that are provided in
- <code>$LPS_HOME/fonts/bitstream-vera-1.10/vera*.ttf</code>.
- If you'd like to display the default font at different sizes, you can use the <code>verity9*</code>
- files provided for 9 point text or you can use the <code>vera*</code> for arbitrary sizes.
- </p>
-?>
-
-<example role="live-example">
- <title>Verity and vera fonts</title>
- <programlisting language="lzx">
- <textobject><textdata fileref="programs/fonts-$20.lzx"/></textobject>
- </programlisting>
-</example>
-
-
- <para>
- The OpenLaszlo compiler also knows to automatically include the bold, italic, or bold italic
- version of this font if it can detect that they are needed.
- </para>
-
- <para>
- You may redefine the default font if you'd like.</para>
-
-<example role="live-example">
- <title>Redefining the default font</title>
- <programlisting language="lzx">
- <textobject><textdata fileref="programs/fonts-$21.lzx"/></textobject>
- </programlisting>
-</example>
-
- <para>Note that when you redefine the default font, the compiler no longer can automatically
- include the bold, italic, or bold italic styles for you.</para>
-
- <para/></section><section><title>Fonts and components</title>
-
- <para>Because components are classes in LZX, there can be an interaction between any component
- that has a font attribute declared in its class definition. In particular, the
- <indexterm><primary>basecomponent</primary></indexterm><sgmltag class="element"><basecomponent></sgmltag><remark role="fixme">[unknown tag]</remark>
-<!--unknown tag: basecomponent-->
- class is defined to use the font named 'default'.
- </para>
-
- <para>
- The OpenLaszlo components are defined and built to use a specific font (verity11).
- They should/may work with other fonts. But today, you are only guaranteed that they work with the
- font they were designed with.</para>
-
- <para>There is no mechanism for developers to easily
- change the fonts used by the components. (Note: some components may not work correctly
- with anything except the default font.)
- It can be done on component instances easily, or you can declare new classes like
- </para>
-
-<example role="live-example"><title>Changing the fonts for Laszlo components</title><programlisting>
-<class name="mybutton" extends="button" font="myfont"/>
-<class name="mycheckbox" extends="checkbox" font="myfont"/>
-⋮
-</programlisting></example>
-
- <para>Another way to get components to use a font other than 'default' is to
- actually redefine the default font.</para>
-
-<example role="live-example">
- <title>Redefining the default font for OpenLaszlo components</title>
- <programlisting language="lzx">
- <textobject><textdata fileref="programs/fonts-$23.lzx"/></textobject>
- </programlisting>
-</example>
-
-
-
- <para/></section><section><title>Fonts provided with the OpenLaszlo Server</title>
+ <para/></section></section>
+<section><title>Fonts provided with the OpenLaszlo Server</title>
<para>The OpenLaszlo Server provides a number of fonts for your use in <literal>$LPS_HOME/lps/fonts</literal>.
The pseudo-pixel fonts that come with the OpenLaszlo Server are described <link linkend="fonts.pixel-fonts">above</link>. The OpenLaszlo
default (pseudo-pixel) font, <literal>verity11</literal> is there as is an outline version of the same
Deleted: openlaszlo/trunk/docs/src/developers/programs/fonts-$20.lzx
Deleted: openlaszlo/trunk/docs/src/developers/programs/fonts-$21.lzx
More information about the Laszlo-checkins
mailing list