Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Font Resource Message-ID: <28563@ucbvax.BERKELEY.EDU> Date: 27 Mar 89 14:28:12 GMT References: <3233@imagen.UUCP> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 18 In article <3233@imagen.UUCP> ib@apolling (Ivan N. Bach) writes: >I am trying to create some Macintosh resources of type FONT. The resource manager data structures are for debugging use only! If you want to create a font, just put the data in a handle and do: CreateResFile("\pmyFontFile"); OpenResFIle("\pmyFontFile"); AddResource(fontHandle, 'FONT', 128, "\pmyFontName"); CloseResFile(CurResFile()); Don't muck with resource manager data structures directly. Don't rely on Inside Mac Vol 1 to tell you the format of a FONT resource: read the Font Manager chapters in Inside Mac vol 4, and 5. --- David Phillip Oster --"When we replace the mouse with a pen, Arpa: oster@dewey.soe.berkeley.edu --3 button mouse fans will need saxophone Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu --lessons." - Gasee