Re-2: Exporting to rtf with fontinformation

runrev260805 at m-r-d.de runrev260805 at m-r-d.de
Wed Jul 9 05:45:21 EDT 2008


Ken,

thank you very much. That did it.

Regards,

Matthias


-------- Original Message --------
Subject: Re: Exporting to rtf with fontinformation (09-Jul-2008 6:43)
From:    Ken Ray <kray at sonsothunder.com>
To:      runrev260805 at m-r-d.de

> > 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/
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> 
> 
> To: use-revolution at lists.runrev.com





More information about the use-livecode mailing list