Re: System font

2000-08-03 Thread Dave Cragg

At 4:19 PM -0700 7/25/00, Richard Gaskin wrote:
Jacqueline Landman Gay at wrote:

 Is there a way to detect the system's menu font on the machine running
 MetaCard? On Mac, that could be Chicago, Charcoal, or several others. On
 Windows, probably MS Sans Serif.

 Set the font to 0 (zero)

 Aha!! Whee! Thanks. :)

 Does this work on Windows too?

Seems to.  Since I got the G4 I've been doing more work on my Mac (helps
that I upgraded that monitor as well -- need lotsa space for all those
palettes g), and I've found that at least setting the property there gets
fonts mapped correctly for Windows as well.

Since the 0 is not documented (is it?), I'm only guessing that it's
reliable; seems to work well here on both platforms.

Old thread, but a new discovery.

The zero won't work on Japanese Windows. At least it won't set a font 
that can display two-byte Japanese. However, while playing around, I 
found that the fontnames function on Windows returns an item named 
"System". Setting the textfont to "System" on Windows seems to work 
just as you might expect. I'm wondering if this can be used as a 
general feature on Windows to ensure a font that will display the 
language of the OS. Can anyone confirm this for Chinese, etc.?

While wondering if the inclusion of "System" in the fontnames was a 
Windows thing or a new Metacard feature, I checked on my Mac. No 
"System" listed, but a mysterious item called ".lastresort" caught my 
eye. I'm sure this wasn't there on previous Metacard versions. 
Anyway, setting the textfont to ".lastresort" produced 
Chicago/Charcoal on the Mac.

Cheers
Dave Cragg

_
The LACS Centre (Business English Training Resources)
mailto:[EMAIL PROTECTED]
http://www.lacscentre.co.uk
_

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




System font

2000-07-25 Thread Jacqueline Landman Gay

I saw this asked before but no answer was ever given:

Is there a way to detect the system's menu font on the machine running
MetaCard? On Mac, that could be Chicago, Charcoal, or several others. On
Windows, probably MS Sans Serif.

It's the Mac interface I particularly need to know. When designing
custom dialogs, it is important that certain buttons display in the
user's selected system font. Can I get this info?

-- 
Jacqueline Landman Gay| [EMAIL PROTECTED]
HyperActive Software  |   [EMAIL PROTECTED]
Custom hypermedia solutions   | http://www.hyperactivesw.com
612.724.1596  |   612.724.1562 - fax

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: System font

2000-07-25 Thread Kevin Miller

On 25/7/00 7:03 pm, Jacqueline Landman Gay [EMAIL PROTECTED] wrote:

 I saw this asked before but no answer was ever given:
 
 Is there a way to detect the system's menu font on the machine running
 MetaCard? On Mac, that could be Chicago, Charcoal, or several others. On
 Windows, probably MS Sans Serif.
 
 It's the Mac interface I particularly need to know. When designing
 custom dialogs, it is important that certain buttons display in the
 user's selected system font. Can I get this info?

At present, a good solution to this particluar problem isn't present.  On
the Mac you can kludge it by setting the font to a non-existant face name
which will use the large system font.  On Windows, you can read the font
from the Registry.

Regards,

Kevin

 Jacqueline Landman Gay| [EMAIL PROTECTED]
 HyperActive Software  |   [EMAIL PROTECTED]
 Custom hypermedia solutions   | http://www.hyperactivesw.com
 612.724.1596  |   612.724.1562 - fax

Kevin Miller [EMAIL PROTECTED] http://www.runrev.com/
Runtime Revolution Limited (formerly Cross Worlds Computing).
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: System font

2000-07-25 Thread Jacqueline Landman Gay

Kevin Miller wrote:
 
 On 25/7/00 7:03 pm, Jacqueline Landman Gay [EMAIL PROTECTED] wrote:
 
  When designing
  custom dialogs, it is important that certain buttons display in the
  user's selected system font. Can I get this info?
 
 At present, a good solution to this particluar problem isn't present.  On
 the Mac you can kludge it by setting the font to a non-existant face name
 which will use the large system font.  On Windows, you can read the font
 from the Registry.

Thanks Kevin. Unfortunately, the default font MC supplies is the small
system font on a Mac (Geneva) which is a pretty good choice for most
fields, but isn't right for buttons. Those need the menu font. :(

Scott: Feature request?

-- 
Jacqueline Landman Gay| [EMAIL PROTECTED]
HyperActive Software  |   [EMAIL PROTECTED]
Custom hypermedia solutions   | http://www.hyperactivesw.com
612.724.1596  |   612.724.1562 - fax

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: System font

2000-07-25 Thread Richard Gaskin

Jacqueline Landman Gay at wrote:

 Is there a way to detect the system's menu font on the machine running
 MetaCard? On Mac, that could be Chicago, Charcoal, or several others. On
 Windows, probably MS Sans Serif.

Set the font to 0 (zero)

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Multimedia Design and Development for Mac, Windows, UNIX, and the Web
 _
 [EMAIL PROTECTED] http://www.FourthWorld.com
 Tel: 323-225-3717   ICQ#60248349Fax: 323-225-0716



Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: System font

2000-07-25 Thread Jacqueline Landman Gay

Richard Gaskin wrote:
 
 Jacqueline Landman Gay at wrote:
 
  Is there a way to detect the system's menu font on the machine running
  MetaCard? On Mac, that could be Chicago, Charcoal, or several others. On
  Windows, probably MS Sans Serif.
 
 Set the font to 0 (zero)

Aha!! Whee! Thanks. :)

Does this work on Windows too?

-- 
Jacqueline Landman Gay| [EMAIL PROTECTED]
HyperActive Software  |   [EMAIL PROTECTED]
Custom hypermedia solutions   | http://www.hyperactivesw.com
612.724.1596  |   612.724.1562 - fax

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: System font

2000-07-25 Thread Geoff Canyon

Richard Gaskin [EMAIL PROTECTED] said, on 7/25/00 1:53 PM:

Jacqueline Landman Gay at wrote:

 Is there a way to detect the system's menu font on the machine running
 MetaCard? On Mac, that could be Chicago, Charcoal, or several others. On
 Windows, probably MS Sans Serif.

Set the font to 0 (zero)

MetaCard took 0, but seemed to do something strange with it. My system 
font (Charcoal) didn't display right.

With the externals collection (maybe other xcmds as well) to run 
AppleScripts, you could run the following to get the system font:

tell application "Appearance"
    the system font of the current theme
end tell

Presumably that could be translated into an apple event, so you could do 
it directly with MetaCard's built-in send command, but I've never 
developed the skill of translating from applescript to apple events.

gc

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: System font

2000-07-25 Thread Richard Gaskin

Geoff Canyon at wrote:

 Is there a way to detect the system's menu font on the machine running
 MetaCard? On Mac, that could be Chicago, Charcoal, or several others. On
 Windows, probably MS Sans Serif.
 
 Set the font to 0 (zero)
 
 MetaCard took 0, but seemed to do something strange with it. My system
 font (Charcoal) didn't display right.

What exactly happened?  Could it be an anti-aliasing issue?

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Multimedia Design and Development for Mac, Windows, UNIX, and the Web
 _
 [EMAIL PROTECTED] http://www.FourthWorld.com
 Tel: 323-225-3717   ICQ#60248349Fax: 323-225-0716



Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: System font

2000-07-25 Thread Richard Gaskin

Jacqueline Landman Gay at wrote:

 Is there a way to detect the system's menu font on the machine running
 MetaCard? On Mac, that could be Chicago, Charcoal, or several others. On
 Windows, probably MS Sans Serif.
 
 Set the font to 0 (zero)
 
 Aha!! Whee! Thanks. :)
 
 Does this work on Windows too?

Seems to.  Since I got the G4 I've been doing more work on my Mac (helps
that I upgraded that monitor as well -- need lotsa space for all those
palettes g), and I've found that at least setting the property there gets
fonts mapped correctly for Windows as well.

Since the 0 is not documented (is it?), I'm only guessing that it's
reliable; seems to work well here on both platforms.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Multimedia Design and Development for Mac, Windows, UNIX, and the Web
 _
 [EMAIL PROTECTED] http://www.FourthWorld.com
 Tel: 323-225-3717   ICQ#60248349Fax: 323-225-0716



Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: System font

2000-07-25 Thread Geoff Canyon

Richard Gaskin [EMAIL PROTECTED] said, on 7/25/00 4:21 PM:

 MetaCard took 0, but seemed to do something strange with it. My system
 font (Charcoal) didn't display right.

What exactly happened?  Could it be an anti-aliasing issue?

Nope, an old-fashioned brain freeze. My system font is Charcoal. The 
default font size for a button is 14. I set the font (not the size) to 0, 
saw something that looked funky in comparison to the text in the menu bar 
(which is 12 point) and jumped to conclusions. Once I set the button to 
12 point, all was right with the world.

Sorry--I'll slink back to my corner now...  :-)

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.