Goofy font change question
richmondmathewson at gmail.com
Sat Dec 9 04:17:13 EST 2017
Sorry: usual nonsense of trying to over-complicate matters; this works
on menuPick PHONT
set the textFont of fld "fff" to PHONT
get the fontNames
sort lines of it
put it into btn "OM"
set the label of me to "FONTS"
Oh, and if one does this:
set the text of fld "fff" to PHONT
one ends up with the fontName in the field.
On 9/12/17 10:37 am, Mark Waddingham via use-livecode wrote:
> On 2017-12-09 09:33, Richmond Mathewson via use-livecode wrote:
>> Can anyone tell me why this is not working?
>> on menuPick PHONT
>> switch PHONT
>> set the unicodeText of fld "fff" to PHONT
>> end switch
>> end menuPick
>> on mouseDown
>> get the fontNames
>> sort lines of it
>> put it into btn "OM"
>> set the label of me to "FONTS"
>> end mouseDown
> Without more context its hard to say - but you are using a switch
> without any cases - which I don't think works.
> Also, unless PHONT is UTF-16 data, then you should be using text, and
> not unicodeText.
> Warmest Regards,
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
More information about the Use-livecode