Article View: comp.sys.amiga.tech
Article #9037Re: Font help needed
From: Robert R. Burns
Date: Fri, 03 Jun 1988 16:25
Date: Fri, 03 Jun 1988 16:25
32 lines
2273 bytes
2273 bytes
In article <62300001@hobbiton> tran@hobbiton.prime.com writes:
>My problem comes when I try to load in a disk font, "DIAMOND.20". Here are
>the steps I perform:
>
> 1) Set up the TextAttr structure ("DIAMOND.FONT",20,{},{}).
Note that font name should be "diamond.font". It turns out that, due to a
side effect of implementation, "DIAMOND.FONT" will currently get you a font
with the diskfont.library, but with the unwholesome caveats implied by that
implementation:
1. The font will first be looked for on the graphics font list. That
search uses FindName, and is thus case sensitive.
2. If the font is not found, it will be read it in from disk using the
font name to find the file "FONTS:DIAMOND.FONT". Note that any
case of "diaMoND.FoNT" will work, because file names are case insensitive.
3. That font will be added to the font list with the name (actually the
tail of the path name) you specified in the TextAttr structure. This
means your all-caps name will be used.
Now someone else comes along, performs an AvailFonts to find out what
fonts are available, and discovers that there is a "DIAMOND.FONT" in the
memory font list, and a "diamond.font" on the disk. An attempt to load
"diamond.font" will succeed, it just uses two font images where one was
sufficient. Meanwhile, what name(s) should the application put in the menu?
Summary (again): Font name *is* case sensitive, please use the right name
- Kodiak
--
| / _ _|' _ |/ Bob Burns . . . . .---. . Makers of
|/ (_)(_)|(_\|\ USENET: amiga!kodiak / \ |\ /| | | __ / \ the "Power
|\ Kodiak \ _______/ A \| \/ |_|_|___|/ A \ System"
| \ Software "Dedicated to the Science of Fun"\_________
Technical Details
Message-ID:
<2287@amiga.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!dciem!nrcaer!scs!spl1!laidbak!att!pacbell!ames!oliveb!amiga!kodiakReferences:
<62300001@hobbiton>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!dciem!nrcaer!scs!spl1!laidbak!att!pacbell!ames!oliveb!amiga!kodiak From: kodiak@amiga.UUCP (Robert R. Burns) Newsgroups: comp.sys.amiga.tech Subject: Re: Font help needed Message-ID: <2287@amiga.UUCP> Date: 3 Jun 88 16:25:08 GMT Article-I.D.: amiga.2287 References: <62300001@hobbiton> Reply-To: kodiak@tooter.UUCP (Robert Burns) Organization: Commodore-Amiga Inc, Los Gatos CA Lines: 32 Summary: Font name *is* case sensitive, please use the right name