text size and HTMLtext
Devin Asay
devin_asay at byu.edu
Fri Nov 4 12:33:29 EDT 2011
Hi 吉野 孝,
Rule 1 when doing Japanese unicode in LiveCode--always listen to Kenji!
Here's my own take:
You will have to set the text size of the text chunks inside the field, rather than the field itself. It can be a little tricky.
You can try: set the textSize of line 1 of fld "ja" to nn
Or you can try modifying the htmlText of the field:
replace "size=" & quote & nn in fld "ja" with "size=" & quote & xx
You have to experiment a little bit, but you can make it work. I did it a couple of years ago with a project that required Chinese text.
Hope this helps.
Devin
On Nov 3, 2011, at 1:51 AM, 吉野 孝 wrote:
> Hi,
>
> I have a question about text size and HTMLtext.
>
> I want to use Japanese text in my LiveCode stacks.
> I can input Japanese text to a field by only using HTMLtext.
>
> But, I don't change text size of Japanese font size.
> English font can change.
>
> Here is my sample script.
>
> on mouseUp
> repeat with i=10 to 48
> set the textsize of fld "ja" to i
> set the textsize of fld "en" to i
> wait 10 ticks
> put i into msg
> end repeat
> end mouseUp
>
> I need your help.
>
> _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._
> Takashi Yoshino
> http://www.wakayama-u.ac.jp/~yoshino/lab/
> Tel: +81-73-457-8441
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
Devin Asay
Humanities Technology and Research Support Center
Brigham Young University
More information about the use-livecode
mailing list