🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #1173

Using multiple fonts with Intuition

#1173
From: The Prism
Date: Fri, 08 Sep 1989 07:08
29 lines
1091 bytes
I have an Amiga programming question involving using multiple fonts
with intuition.  First of all, my program sets up the screen using
topaz 11 as the standard font, later on however, I want to change fonts
to courier 18, but when I print my string, it is still in topaz 11.
below are the lines from my program where I try to use courier 11:
 --------------

struct TextAttr biggerfont = {
	"courier.font",
	18,
	FS_NORMAL,
	FPB_DISKFONT,
};

struct IntuiText	IT2 = {
	WHITE, 0,
	JAM1, 100, 100,
	&biggerfont,
	"This is a test",
	NULL,
}

    ...
    ...
    ...

	PrintIText(rport,&IT2,0,0);
    ...
    ...
Technical Details
Message-ID: <1317@jimi.cs.unlv.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!unsvax!jimi!stevie!jack

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!unsvax!jimi!stevie!jack
From: jack@stevie.cs.unlv.edu (The Prism)
Newsgroups: comp.sys.amiga.tech
Subject: Using multiple fonts with Intuition
Message-ID: <1317@jimi.cs.unlv.edu>
Date: 8 Sep 89 07:08:12 GMT
Sender: news@jimi.cs.unlv.edu
Reply-To: jack@jimi.cs.unlv.edu (The Prism)
Organization: UNLV Computer Science and Electrical Engineering
Lines: 29