[Xerte] text entry interaction with different font colors

Dave Burnett d_b_burnett at hotmail.com
Sun Sep 12 17:39:51 BST 2010


break apart will break it out as individual characters.
So my guess is that your html text is also being broken into individual characters, so is no longer recognized as tags, it's just characters again and defaults to black.

You can set the text properties dynamically with code.

Dave


Date: Sun, 12 Sep 2010 17:30:53 +0100
Subject: [Xerte] text entry interaction with different font colors
From: bfurtado at student.dei.uc.pt
To: xerte at lists.nottingham.ac.uk

Hi,
I'm probably  not explaining well (sorry about my english). I need to make a programming exercise with a piece of java code to complete, and I would like to put text with different colors. I'm using HTML tags, like this:


  <font color="#0000FF">public static void</font> <b><i>main</i></b>(String[] args) {
   <font color="#999999">//declara um array de inteiros</font>  

   <font color="#0000FF">int</font>[] A = <font color="#0000FF">new int</font>[ |3| ];

It works fine in preview, but when I use the code to break the words apart ( w = mainText.breakApart(3,7,false,false); ), in preview HTML tags display as text. Is there another way to do this? Anyone can help?
 
Thanks a lot. And I'm sorry for the repeated e-mail.

Bárbara Furtado
                

No dia 12 de Setembro de 2010 00:29, Bárbara Furtado <bfurtado at student.dei.uc.pt> escreveu:

Hi,
I have a text entry exercise (interaction), and I need to write text with different font colors. When I use <font color="#000000"> example </font> in a simple text icon, it works. But when I break text apart with function myIcon.breakApart(...) to make the exercise, in preview all text colors disappear and shows all the <font> codes, like it was text.


How can I solve this? I'm using Xerte desktop version.

Thanks,
Bárbara Furtado






This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, 
copy or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.


This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100912/9600ac19/attachment.html


More information about the Xerte mailing list