Article View: comp.os.os2.programmer
Article #107Re: can't access resource font
From: Jerry Penner
Date: Mon, 02 Nov 1992 07:31
Date: Mon, 02 Nov 1992 07:31
27 lines
1619 bytes
1619 bytes
harris@garfield.catt.ncsu.edu (Michael Harris) writes:
>If you want to use GpiLoadFonts, you must compile a dummy entrypoint into
>a DLL and then use the resource compiler to attach the font to the DLL.
>Your DLL can consist of nothing but:
>main()
>{
>}
>Compile that into an .obj file and go from there. You could then install
>the font into your system if you like using the font palette.
I always had trouble trying to make such a dummy DLL and then adding
the font. Maybe I should try again, but what I do now is take a
bitmapped font like 'TMSRE.FON' and rename it to 'MYFONT.FON', compile
the .FNT file into a .RES file and then replace the TMSRE font with my
font by going:
rc MYFONT.RES MYFONT.FON
That has always worked for me although it's a hack. I guess I should
try the regular dummy DLL again. It does seem kind of silly though to
make you stuff fonts into DLLs since it's hard to get them back out
again if you want to modify them.
--
Jerry Penner jpenne@ee.ualberta.ca Try a 1-line .sig today.
Technical Details
Message-ID:
<jpenne.720689508@ee.ualberta.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!ee.ualberta.ca!jpenneReferences:
<1992Oct31.184358.4532@tamsun.tamu.edu> <harris.720655949@garfield.catt.ncsu.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!ee.ualberta.ca!jpenne From: jpenne@ee.ualberta.ca (Jerry Penner) Subject: Re: can't access resource font Message-ID: <jpenne.720689508@ee.ualberta.ca> Sender: news@kakwa.ucs.ualberta.ca Nntp-Posting-Host: eigen.ee.ualberta.ca Organization: University Of Alberta, Edmonton Canada References: <1992Oct31.184358.4532@tamsun.tamu.edu> <harris.720655949@garfield.catt.ncsu.edu> Date: Mon, 2 Nov 1992 07:31:48 GMT Lines: 27