Exporting to rtf with fontinformation
Ken Ray
kray at sonsothunder.com
Tue Jul 8 21:08:41 EDT 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.
Try changing:
set the textFont of fld "RTF Text" to ...
set the textSize of fld "RTF Text" to ...
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.
Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
More information about the use-livecode
mailing list