🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9824

Re: Font and Size

#9824
From: Darcy Schultz
Date: Thu, 03 Feb 2000 00:00
39 lines
2838 bytes
> The font should match what the System Font is set to (or more
> precicesly, what the OS says when the L&F starts to build up the system
> fonts).  There are other font settings for other items in Windows, but
> the L&F doesn't try to do all of them; just the main ones.  You should
> be able to reconcile what you see in the L&F with what you see in the
> Display Properties for Windows.
>
> I don't think it will deal with the "small fonts / large fonts" issue or
> the current Windows-ism of letting you specify your font as a % larger
> or smaller than the standard.  For example, if the system font is set to
> 16pt but the display says "make it 125% larger", when you ask what the
> system font is you'll get 10, not 20.
>
> Bottom line is that any user can tweak windows (and some of the tweaks
> are the default in Win98) in such a way that the display does not match
> the actual values used.  You really can't solve that.  Forcing the font
> to 8pt defeats the whole purpose.  What if someone who needs to see
> things at 18 point runs your app?  If they've set their machine to 18
> pt, you're gonna make their eyes shoot out of their head by forcing 8
> pt.
>
> There should be some pretty good docs on L&F on the Javasoft site.
>

I don't think the L&F is enumerating font information from the system.  If I
modify c:\JBuilder3\java\jre\lib\font.properties and set the dialog.0
property to WingDings instead of the default Arial and then start up
JBuilder3  I see some very interesting looking fonts.  It also doesn't
appear to be getting size information from this place either.  It seems
somewhat arbitrary based on the VM I use.  Although I can appreciate the
accessibility point that you raise, I'm not really certain that Java is
paying attention to these values anyway.  My design goal is to make it look
like Windows.  The L&F give me a close approximation and if I can't tweak
it, then so be it.  I don't really want to get into a debate about whether
or not I should do this.  I just want to know if it's possible.  I'll weigh
the consequences of doing it afterwards.

thanks,
Darcy.
Technical Details
Message-ID: <87cc8c$3sv1@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <877250$4001@bornews.borland.com> <3897140A.5A193B10@inprise.com> <87774b$jj1@bornews.borland.com> <389770C7.BB0DA8D@inprise.com> <87acee$2uh4@bornews.borland.com> <3898C727.17BD169D@inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,4465b35f702de576
X-Google-Attributes: gid111d45,public
From: "Darcy Schultz" <schuldar@yahoo.com>
Subject: Re: Font and Size
Date: 2000/02/03
Message-ID: <87cc8c$3sv1@bornews.borland.com>
X-Deja-AN: 581151015
References: <877250$4001@bornews.borland.com> <3897140A.5A193B10@inprise.com> <87774b$jj1@bornews.borland.com> <389770C7.BB0DA8D@inprise.com> <87acee$2uh4@bornews.borland.com> <3898C727.17BD169D@inprise.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing