Hello Jean-Marc and Others on the Forum,
This morning, I installed LiveCode 8.1.8, as promised, and gave it a try again.
I have the same results but also came up with a simple work around.
To quickly reiterate, when using HTMLText, which I put on a clipboard from a LiveCode field (using "set clipboardData" command) and paste it into a MS Word document, I lose both the textFont and textSize, which comes out instead as Segoe UI 9 when it is supposed to be Times New Roman 12.
When using RTFText, I get Times New Roman, but the textSize gets reduced down to 9 upon pasting.
A simple workaround is simply to temporarily set the textSize of my field at 16.5, then when I cut and paste it into a MS Word document, it comes out as 12 point font.
There seems to be a proportional drop in size of the fontSize, but 16.5 drops down to 12.
Here's some sample code for what I do now:
Code: Select all
lock screen
set the textSize of field "copyThisField" to 16.5
set the clipboardData["RTF"] to the RTFText of field "copyThisField"
set the textSize of field "copyThisField" to 12
unlock screen
Hope that helps.
Cheers,
deeverd