Exporting to rtf with fontinformation
kray at sonsothunder.com
Tue Jul 8 20:08:41 CDT 2008
> But after exporting it to rtf and reopen it in word or wordpad, the text is
> not shown correctly. The font is not correct.
The problem is the way that text attributes are maintained in Rev vs. how
they're exported. If the *field* has text attributes assigned, it looks like
they don't export to RTF. But if the *text* has text attributes assigned and
the *field* doesn't, you get the styling in the RTF.
set the textFont of fld "RTF Text" to ...
set the textSize of fld "RTF Text" to ...
set the textFont of char 1 to -1 of fld "RTF Text" to...
set the textSize of char 1 to -1 of fld "RTF Text" to...
You may need to clear the field-based attributes before it outputs properly
(set the textfFont of fld "RTF Text" to empty), etc.
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode