How to keep the RTF textsize in a variable?
Peter M. Brigham
pmbrig at gmail.com
Fri Oct 3 14:02:35 EDT 2014
Try setting the size of the text itself:
set the textsize of char 1 to -1 of fld "text1" to the the textsize of fld "text1"
then
put the RTFText of fld "text1" into myText
That way the RTFtext will include the explicit textsize you want. Otherwise no textsize will be specified and the RTF document will use whatever default size it's set to.
-- Peter
Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig
On Oct 2, 2014, at 7:58 AM, Tiemo Hollmann TB wrote:
> Hello,
>
> I have a field where I have set several different text sizes -- then I
>
> put the RTFText of fld "text1" into myText
>
> I do some text operations in myText -- then I
>
> set the RTFText of fld "text2" to myText -- and then I
>
> write the RTFText of fld "text2" to file myFile
>
> The result in my RTF document now has another (standard?) text size.
>
>
>
> How can I keep the text size - I have different text sizes in one field -
> from my source field in myFile?
>
> Thanks for any ideas
>
> Tiemo
>
>
>
>
>
>
>
> _______________________________________________
> 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
More information about the use-livecode
mailing list