htmlText help

Dar Scott dsc at swcp.com
Wed Dec 22 18:45:22 EST 2004


On Dec 22, 2004, at 4:05 PM, Paul Salyers wrote:

>>> On OS X I tried using Unicode in Revolution by putting the combining 
>>> diaeresis (0308) after an n.  The font was Lucinda Grande.  It 
>>> didn't render as I expected; I only saw the n.
>>
>> Here is a way to get Revolution to render correctly:
>>
>>   set the htmlText of field "field" to \
>>    format("<p><font face=\"Lucida Grande\" 
>> lang=\"ja\">n̈</font></p>")
>
> Where is the object for htmlText located.

It is a property of a field.  (Or a chunk of a field text.)  It is an 
HTML-like description of the text of a field that includes style and 
fonts and so on.

This particular problem can be addressed by setting the textFont of the 
field include the encoding "Japanese".  That forces the field to use 
unicode encoding for the entire field.  That way the modifier, the 
combining diaeresis, is kept with the modified character.

Dar

**********************************************
     DSC (Dar Scott Consulting & Dar's Lab)
     http://www.swcp.com/dsc/
     Programming Services and Software
**********************************************



More information about the use-livecode mailing list