ambassador at fourthworld.com
Fri Dec 13 21:05:34 EST 2013
> On 14/12/2013, at 12:45 PM, Richard Gaskin <ambassador at fourthworld.com> wrote:
>> In LC 6.5 the scriptTextFont and scriptTextSize global properties are empty.
>> How does one obtain the font and size set in prefs used by the script editor?
> Here's some code from my diff field:
> dispatch function "sePrefGet" to stack "revNewScriptEditor" with "editor,backgroundcolor"
> set the backColor of me to the result
> dispatch function "sePrefGet" to stack "revNewScriptEditor" with "editor,font"
> set the textFont of me to the result
> dispatch function "sePrefGet" to stack "revNewScriptEditor" with "editor,fontsize"
> set the textSize of me to the result
> _internal script colorize char 1 to (the number of chars of me) of me
>> And why doesn't the IDE use the built-in properties for that?
> No idea
I filed a bug against it, as those properties are very useful to folks
making IDE tools to ensure we display script-related stuff that reflect
the user's preferences:
Know the engine.
Trust the engine.
Use the engine.
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
Follow me on Twitter: http://twitter.com/FourthWorldSys
More information about the Use-livecode