Article View: comp.sys.amiga.tech
Article #9601Re: Font loading problem
From: Robert R. Burns
Date: Fri, 26 Aug 1988 18:16
Date: Fri, 26 Aug 1988 18:16
31 lines
1727 bytes
1727 bytes
In article <3704@polya.Stanford.EDU> aozer@next.com (Ali Ozer) writes:
)---
)Here's what I'm trying to do: Load a font from a subdirectory of the
)directory where my executable is.
Open the font with:
ta.ta_Name = "myapp:fontdir/bosco.font";
ta.ta_YSize = 11;
...
OpenDiskFont(&ta);
Now the tricky part.
Under 1.2 (V33) and earlier diskfont.library, the font contents file
name is opened relative to FONTS:, so it needed to be like
"myapp:fontdir/bosco/11".
Under 1.3 (V34) and later diskfont.library, the font contents file
name is opened relative to the directory containing the font contents
file, so it can be like "bosco/11", which is just like fonts you find
in the FONTS: drawer.
So, since you cannot ensure that the user has 1.3 (RSN :-)), you
probably want to have an entry like the first one. See
libraries/diskfont.h for the form of the font contents file.
- Kodiak
--
| / _ _|' _ |/ Bob Burns . . . . .---. .
|/ (_)(_)|(_\|\ {pyramid|oliveb|cbmvax]! / \ |\ /| | | __ / \
|\ Kodiak \ amiga!kodiak _______/ A \| \/ |_|_|___|/ A \
| \ Software "dedicated to the science of fun"\_________
Technical Details
Message-ID:
<2805@amiga.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!cornell!mailrus!ames!oliveb!amiga!kodiakReferences:
<3704@polya.Stanford.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!cornell!mailrus!ames!oliveb!amiga!kodiak From: kodiak@amiga.UUCP (Robert R. Burns) Newsgroups: comp.sys.amiga.tech Subject: Re: Font loading problem Message-ID: <2805@amiga.UUCP> Date: 26 Aug 88 18:16:10 GMT References: <3704@polya.Stanford.EDU> Reply-To: kodiak@tooter.UUCP (Robert Burns) Organization: Commodore-Amiga Inc, Los Gatos CA Lines: 31