home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
programs
/
fonts
/
a_q
/
fontset
/
!FontSet
/
!Help
< prev
next >
Wrap
Text File
|
1998-01-07
|
3KB
|
60 lines
Name : !FontSet
Purpose : Change desktop font quickly
(especially when creating windows)
Author : Richard Goodwin
Status : Public Domain
Version : 1.00 (OCtober 1997)
Requires : It's Risc PC only folks
This program is public domain, and may be copied, ripped off etc.
as you see fit.
How to use it
~~~~~~~~~~~~~
On loading the program you will see a window in the centre of the screen with
five radio icons; the topmost of these has "*Unset Wimp$Font" next to it, and
the others have names of fonts next to them. "*Unset Wimp$Font" will attempt
to set the font to the system font (the blocky one, without any smoothing
round the edges), and so will be referred to as the system font from now on.
If you are currently using one of these fonts as your desktop font then one
of the radio icons will already be set; this will happen at any time, if the
desktop font is changed at any point the program will detect this and alter
its display accordingly; so, you can run three copies of !FontSet and when
you use one to change the font, all of them will automatically change their
display at the same time! Spooky!
Using !FontSet once loaded is very simple - click on one of the radio icons,
and the desktop font will change! It will also broadcast a font change
message, so bits of the desktop will redraw as necessary.
HOWEVER, the system font may not work correctly without a little fiddling;
there are two ways of defining what font is used in the desktop, one is a
system variable (Wimp$Font) and the other is a configuration option
("*configure wimpfont x" where x is a number between 0 to 12 for system font
or one of the twelve main ROM fonts).
If the system font option is not working correctly, you should do the
following:
press F12 to get to the CLI prompt and type:
*configure wimpfont 0
(press RETURN or ENTER twice to get back to the desktop).
This will make sure the configuration option isn't used; you'll still get
your desktop font as per normal when booting up because the Wimp$Font
variable overrides this old configuration options, and gives you the option
of using fonts outside the standard ROM fonts.
What bloody use is that Rich?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When writing desktop programs you have to be very careful that the text on
any windows you're designing is visible for people using a desktop font other
than the one you're using. For instance, I use Homteron Medium, which is
generally much thinner than the standard system font some non-Risc PC users
will be restricted to; Homerton Bold Oblique is somewhere in between.
Instead of having to go to the CLI or load !Configure and switch fonts all
the time, I wrote !FontSet to quickly switch between fonts and see much more
quickly which bits of the window needs to be changed.
Cheers,
Richard Goodwin.
richard@goodwin.uk.com
http://www.goodwin.uk.com/richard/