Exactly, but this does not answer my question, which is:
if I set the textFont of an object , say a button to "(Menu)" and the
look at the effective textFont of that same object, I get "(Menu"), so
how do I find out what the actual font really is?
For example, the default field font on Windows 10 is "Segoe UI", but if
I set a the textFont of a fld to "(Text)" and the get the effective
textFont of that same field, I get "(Text)" when I would expect to get
"Segoe UI".
On 2/4/2020 12:37 PM, dunbarx--- via use-livecode wrote:
Here is some unhelpful information from the dictionary:
The list of font names includes a set of special-purpose names which automatically select
the matching font for the platform. You can use these to request "the font used for
buttons" without having to hard-code platform-specific font names. These fonts are:
- (Text) - the font used for fields and other controls with editable content
- (Menu) - the font used for menu items
- (Message) - the font used for buttons, labels and other communication
from the app
- (Styled Text) - the font used by default for rich text
- (System) - the font for controls not covered by another category
- (Tooltip) - the font used for displaying tooltips
- (Default) - selects one of the UI fonts automatically based on the
control type
-----Original Message-----
From: Paul Dupuis via use-livecode <[email protected]>
To: How to use LiveCode <[email protected]>
Cc: Paul Dupuis <[email protected]>
Sent: Tue, Feb 4, 2020 12:28 pm
Subject: the fontnames and special names like (Menu)
The fontnames() function returns certain special font names like:
(Default)
(Styled Text)
(Menu)
(Text)
(Message)
(Tooltip)
(System)
How do I find out what fonts these really are on a given platform. The
effective textFont does not seem to work.
For example the following code on Windows 10,
set the textFont of fld 1 to "(Text)"
put the effective textFont of fld 1
outputs "(Text)" when I would have expected it to output "Segoe UI"
Is this a bug?
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode