🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #2074

Re: Turbo C font selection

#2074
From: Isaac Rabinovitch
Date: Fri, 27 Jul 1990 02:37
33 lines
1925 bytes
In <6029@tekred.CNA.TEK.COM> waynet@tekred.CNA.TEK.COM (Wayne Turner) writes:

> In an attempt to use the
>EURO.CHR font I renamed EURO.CHR to TRIP.CHR and specified TRIPLEX_FONT
>to settextstyle.  This caused the standard bit-mapped font to be used.
>I suspect that this is due to TRIP.CHR now containing a signature that
>doesn't match the basename of the file. In any event, if the extended
>fonts are all proportionally spaced they won't be of much use to me.

That's going at it all wrong.  You want to register a new font, not
play tricks with one of the old ones.

You probably got stuck the same place I did.  The *Turbo C Reference*
entry for settextstyle() goes on and on about using it a alone and in
conjunction with registerbgifont().  But apparently this only works with
fonts that're hard-wired into the BGI setup.  I finally called Borland
Tech Support and they told me to use installuserfont().  (The manual
could've had a simple cross-reference to it, but that'd be too easy!)
I looked it up, realized at first glance that it would work, and hung
up.  This function takes a font file name (*any* font file name) and
returns a font number you can pass to setttextstyle().

Then I realized that this'd only work for external font files, and I
still didn't know how to make "user" fonts "linked-in".  Anybody want
to tell me and save me another phone call?
-- 

ergo@netcom.uucp			Isaac Rabinovitch
atina!pyramid!apple!netcom!ergo		Silicon Valley, CA
uunet!mimsy!ames!claris!netcom!ergo

	"I hate quotations.  Tell me what you know!"
			-- Ralph Waldo Emerson
Technical Details
Message-ID: <11054@netcom.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!sun-barr!ames!amdahl!netcom!ergo
References: <6029@tekred.CNA.TEK.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!sun-barr!ames!amdahl!netcom!ergo
From: ergo@netcom.UUCP (Isaac Rabinovitch)
Newsgroups: comp.sys.ibm.pc.misc
Subject: Re: Turbo C font selection
Message-ID: <11054@netcom.UUCP>
Date: 27 Jul 90 02:37:59 GMT
References: <6029@tekred.CNA.TEK.COM>
Organization: UESPA
Lines: 33