🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #988

Re: Adding a font to an application

#988
From: Chris GUZAK
Date: Sun, 30 Dec 1990 00:56
18 lines
1303 bytes
In article <1990Dec17.043126.8415@ivucsb.sba.ca.us> todd@ivucsb.sba.ca.us (Todd Day) writes:
>I am trying to add a 10 character LCD number font to one
>of my applications.  However, I can't seem to get it to
>work.  I've linked it into my application via the resource
>compiler (I've found some of the strings from the font

Just because your font is in your exe doesn't mean it
is available for use in the system.  You need to
AddFontResource() the thing.  You might even be able
to AddFontResource(GetModuleName(hInst)) (wrong syntax,
but you get the idea).  It is probably a better idea to
keep the font file seperate.  If you wan't to
make sure you got the font you asked for (instead
of relying on the font mapper (randomizer)) use GetFaceName()
(or whatever it is called).  Check that against the
lfFaceName field you passed in.

Chris Guzak
Technical Details
Message-ID: <60128@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!chrisg
References: <1990Dec17.043126.8415@ivucsb.sba.ca.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!chrisg
From: chrisg@microsoft.UUCP (Chris GUZAK)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Adding a font to an application
Message-ID: <60128@microsoft.UUCP>
Date: 30 Dec 90 00:56:24 GMT
References: <1990Dec17.043126.8415@ivucsb.sba.ca.us>
Reply-To: chrisg@microsoft.UUCP (Chris GUZAK)
Organization: Microsoft Corp., Redmond WA
Lines: 18