🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Font help needed

#9050
From: tran
Date: Wed, 08 Jun 1988 17:36
49 lines
2149 bytes
[This line brought to through the miracle of modern science.....]

Aaugh!  I'm gonna start pulling hair soon!  The following is what I do.
All definitions are supplied below, as well as the EXACT code:
-------------------------------------------------------------------------------

VAR
   Gfx, Intu, Dfon : LibraryPtr;
   ft              : TextFontPtr;
   ta              : TextAttr;
   win             : WindowPtr;

BEGIN
   Gfx := OpenLibrary(ADR("graphics.library"),0);   (* Just in case *)
   Intu := OpenLibrary(ADR("intuition.library"),0); (* Just in case *)
   Dfon := OpenLibrary(ADR("diskfont.library"),0);  

   (* Code ommited to check and see if every library opened ok.  When I
      run this bugger, everything opens as required *)

   (* But just in case, the way I check is:
      IF (Dfon = NIL) THEN .... (error) *)

   ta.taName := ADR("diamond.font");
   ta.taSize := 20;
   ta.taStyle := FontStyleSet{};
   ta.taFlags := FontFlagsSet{};

   ft := OpenDiskFont(ta);
   SetFont(win^.RPort^,ft^);

   .
   .
   .
   
-------------------------------------------------------------------------------

Now, the code drops dead at the OpenDiskFont call.  What am I doing wrong?
As far as I can see, it should work.  I have added all your responses so far
(diamond.font in lowercase, adding the diskfont.library, etc) but still this
turkey refuses to fly.

Any clues, hints, pointing fingers?
===============================================================================
Burton Choinski                                             Prime Computer Inc.
tran@hobbiton.prime.com     
        - or -
choinski@hobbiton.prime.com         
Technical Details
Message-ID: <62300003@hobbiton>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!mtunx!rutgers!gatech!bloom-beacon!tut.cis.ohio-state.edu!husc6!necntc!primerd!hobbiton!tran
References: <62300001@hobbiton>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!mtunx!rutgers!gatech!bloom-beacon!tut.cis.ohio-state.edu!husc6!necntc!primerd!hobbiton!tran
From: tran@hobbiton.prime.com
Newsgroups: comp.sys.amiga.tech
Subject: Re: Font help needed
Message-ID: <62300003@hobbiton>
Date: 8 Jun 88 17:36:00 GMT
References: <62300001@hobbiton>
Lines: 49
Nf-ID: #R:hobbiton:62300001:hobbiton:62300003:000:1646
Nf-From: hobbiton.prime.com!tran    Jun  8 13:36:00 1988