This regards LPP-1991, which reports that this example for <font> in  
the LZX Reference -- http://www.openlaszlo.org/lps-latest/docs/ 
reference/html-font.html -- is wrong:

<canvas height="30">
   <font name="Arioso" src="ariosor.ttf">
     <face src="ariosob.ttf" style="bold"/>
   </font>

   <text height="24">
     Some <font color="#ff0000">red</font> text, and text
     in <font face="Arioso" size="24">Arioso</font>
     and <font face="Arioso" size="24"><b>Arioso bold</b></font>.
   </text>
</canvas>

Reporter Benjamin Shine writes:

The face attribute of the font tag WITHIN a text tag can only refer  
to client fonts. So the example should recommend doing this
     <text font="clawless" fontsize="48">This shows up as Clawless</ 
text>
not this
     <text><font face="clawless">...</font></text>

Benjamin is correct, but to modify the LZX Reference example as such:

<canvas height="30">
   <font name="Arioso" src="ariosor.ttf">
     <face src="ariosob.ttf" style="bold"/>
   </font>

   <text height="24">
     Some <font color="#ff0000">red</font> text, and text
     in <text font="Arioso" fontsize="24">Arioso</text>
     and <text font="Arioso" fontsize="24"><b>Arioso bold</b></text>.
   </text>
</canvas>

fixes the problem with the font being displayed, but it creates a  
different problem in that every time the compiler sees a new <text>  
tag, it breaks the line.

So the question is, How to change fonts back and forth within the  
same line or graph of text?


_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to