This is an utility I wrote some time ago, just after I bought a
CyberVision64 graphics board. I was annoyed by the fact that the
font text was almost unreadable with some background images. So
I quickly wrote this util that draws an thin outline around the
icon texts. The outline can be of any colour and width. I prefer
a black outline, 1 pixel wide, and with white text.
I have included a screen shot from my Workbench showing how it will
look like once you got it installed.
Requirements:
AmigaOS 3.0 or higher.
68020 or better.
Installation:
Copy OulineFont to c:, or add a path to the OutlineFont
directory.
Start Prefs/Font
Choose "Select Workbench Icon text..."
Select the font and field colour you want.
The field colour will be used for the outline.
Select mode "Text+Field".
Select OK; and save the font settings.
Add "run >nil: OutlineFont <text> <field> <width>" to
your startup-sequence, before LoadWB.
"<text>" is the palette number of the text colour you
choosed in Prefs/Font.
"<field>" is the fiels colour.
"<width>" is the outline width.
Example: "run >nil: OutlineFont 2 1 1"
This will use colour 2 for the text and 1 for the outline.
The outline width will be 1 pixel. If you are using the
standard Workbench or MagicWB palette this will give you
a white font text with a black border.
This is just a quick "hack", and could be done much better. Please feel
free to improve it, or write a completely new OutlineFont util.
I have included the crappy, badly coded source. It's based on some example
code in some RKM or NDU, I think. It's been over a year since I touched
it.
I don't have the time, nor the motivation to spend any more time on this...
Anyway, I hope it works on your system as good as it does on mine. :)
It's been tested on the following systems:
A4000, CyberStorm060, 32 MB FastRAM, CyberVision64 in 8/16/24-bit.
A4000/030, 16MB FastRam, AGA in 1-8 bit modes.
The screen shot is from my Workbench running in 800x600 24-bit.
|