RTF export

Björnke von Gierke bvg at mac.com
Sun Jan 9 08:14:35 EST 2011


The font is inherited from the stack or field (or group), and bot htmltext as well as rtftext ignore that. I would use a temporary field, set the text font to the effective text font, then get the rtftext of that field. you'll run into complications if the textfont is already set to different one within the field tho. You'd need to parse the htmltext in detail in such a case. I also added an enhancement request:

http://quality.runrev.com/qacenter/show_bug.cgi?id=9287

--workaround that deletes existing textFont settings of chunks in the field
on mouseUp
   put the effective textfont of field 1 into theFont
   set the rtftext of field 2 to the rtftext of field 1
   set the textfont of char 1 to -1 of field 2 to theFont
   put the rtftext of field 2 into url ("binfile:" & "text.rtf")
end mouseUp

On 9 Jan 2011, at 13:37, Richmond wrote:

> Funnily enough when I export RTF documents
> the don't seem to retain a reference to the font
> they were originally written in (inside Livecode).
> 
> Help? Ideas? Richmond is being thick and missing
> something?
> _______________________________________________
> 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