🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: no.it.programmering.visual-basic
Article #9

Re: How do I find out if WIN32 is using Large or Small Fonts?!

#9
From: David Jeavons
Date: Tue, 18 Aug 1998 00:00
31 lines
1770 bytes
On Fri, 31 Jul 1998 16:40:41 GMT, phull@interlog.com (Chetan Phull)
wrote:

>Hi people I've been trying for a long time now to find a function
>that'll determine if Windows95/98 is using Small or Large fonts.
>Isn't there something like this that would determine it:
>
>Dim FontSize As BOOL
>FontSize = GetFontSize()
>
>If FontSize = True Then			'large
>	'blah
>Else					'small
>	'blah
>End If
>
>If there is no function that would work as the above wishful thinking
>I have just typed, please tell me how I would find out.  Thanx
>
>Chetan
>Phull


If you wish to find entries from the Windows 95/98, NT registry you
need to use GetSetting or GetAllSettings VB functions. You can find
help on these in the help file. Unfortunately, to use the GetSetting
you must know the registry key. 

Dan Applemans Gude to the Win32 API is also a very good book. It has a
whole chapter set aside for Windows fonts and outlines all of the
API's used to set and get font information
Technical Details
Message-ID: <35d9cb17.1703578@News.IS4B.Net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35c1f243.2994657@nntp.interlog.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111c14,f1874b547450a3e1
X-Google-Attributes: gid111c14,public
X-Google-Thread: 10b997,f1874b547450a3e1
X-Google-Attributes: gid10b997,public
X-Google-Thread: fb992,f1874b547450a3e1
X-Google-Attributes: gidfb992,public
X-Google-Thread: 10f2ee,f1874b547450a3e1
X-Google-Attributes: gid10f2ee,public
From: Dave@Twisted-Pair.Co.Uk (David Jeavons)
Subject: Re: How do I find out if WIN32 is using Large or Small Fonts?!
Date: 1998/08/18
Message-ID: <35d9cb17.1703578@News.IS4B.Net>
X-Deja-AN: 382396994
References: <35c1f243.2994657@nntp.interlog.com>
Organization: Force 9 Internet
Newsgroups: no.it.programmering.visual-basic,it.comp.lang.visual-basic,comp.lang.visual.basic,ab.software.developers