Article View: comp.sys.amiga.tech
Article #5291Re: Loading a DiskFont
From: Henrik Clausen
Date: Thu, 13 Sep 1990 03:55
Date: Thu, 13 Sep 1990 03:55
34 lines
2103 bytes
2103 bytes
>In article <lclausen.0335@lckaos.UUCP> lclausen@lckaos.UUCP (Lars R. Clausen) writes:
>>In article <33534@cup.portal.com> Bits_of_Magic@cup.portal.com writes:
>>Is there a way
>>to Assign a new fonts directory from within my program, then restore
>>the old Assign before I exit? I am using Lattice C 5.04.
>Or even better, assign Fonts: to where you want it, load the font, then reassign
>to the original Fonts:. We've run into exactly the same problem, and we don't
>want Fonts: to be changed all the time, as other programs might want it.
>Changing it only as long as it takes to load the font minimizes the risc of a
>collision. I'd like to hear any suggestions, too.
Best:
USING FONTS IN OTHER DIRECTORIES
OpenDiskFont() has a feature which makes it easy to access fonts in directories
other than FONTS:. If the name in the TextAttr structure (shich gets passed to
OpenDiskFont()) is a full pathname, (e.g. Work:special/accounting.font.font or
df0:Phunny/Phonts/quack.fonts), then OpenDiskFont() will use that full pathname
to access the font contents file.
(Quote without permission from RKM: Libraries & Devices)
This way, you will not mess with the global font assign, and you can still
look anywhere you want for your fonts, like MyProg:Fonts/... or whatever.
-Henrik
--
| Henrik Clausen, Graffiti Data (Fido: 2:230/22.33) |
| ...{pyramid|rutgers}!cbmvax!cbmehq!adspdk!hclausen |
\__"Do not accept the heart that is the slave to reason" - Qawwali trad__/
Technical Details
Message-ID:
<hclausen.3067@adspdk.CBMNET>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!clyde.concordia.ca!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!mips!prls!pyramid!oliveb!amiga!cbmvax!cbmehq!cbmdeo!adspdk!hclausenReferences:
<^*}%^D+@masalla.fulcrum.bt.co.uk> <33534@cup.portal.com> <lclausen.0335@lckaos.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!clyde.concordia.ca!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!mips!prls!pyramid!oliveb!amiga!cbmvax!cbmehq!cbmdeo!adspdk!hclausen From: hclausen@adspdk.CBMNET (Henrik Clausen) Newsgroups: comp.sys.amiga.tech Subject: Re: Loading a DiskFont Message-ID: <hclausen.3067@adspdk.CBMNET> Date: 13 Sep 90 03:55:06 GMT References: <^*}%^D+@masalla.fulcrum.bt.co.uk> <33534@cup.portal.com> <lclausen.0335@lckaos.UUCP> Lines: 34