home *** CD-ROM | disk | FTP | other *** search
- id m0txs3h-0007qWa; Sat, 16 Mar 96 02:13 MST
- Sender: owner-executor
- Received: from ardi.com by ftp.ardi.com
- (Smail3.1.29.1 #3) id m0txs38-0007qCn; Sat, 16 Mar 96 02:13 MST
- Path: sloth.swcp.com!tesuque.cs.sandia.gov!ferrari.mst6.lanl.gov!nntp-server.caltech.edu!nntp1.jpl.nasa.gov!news.magicnet.net!news.supernet.net!news.cais.net!ringer.cs.utsa.edu!swrinde!newsfeed.internetmci.com!info.ucla.edu!csulb.edu!csus.edu!news.ucdavis.edu!slouken
- From: slouken@cs.ucdavis.edu (Sam Oscar Lantinga)
- Newsgroups: comp.emulators.mac.executor
- Subject: Re: Resource -> Data fork help
- Date: 14 Mar 1996 18:11:09 GMT
- Organization: University of California, Davis
- Lines: 36
- Message-ID: <4i9nft$44e@mark.ucdavis.edu>
- References: <4i8din$7k4@decaxp.harvard.edu>
- NNTP-Posting-Host: maybach.cs.ucdavis.edu
- X-Newsreader: TIN [version 1.2 PL2]
- To: executor@ardi.com
- X-MailNews-Gateway: From newsgroup comp.emulators.mac.executor
- Sender: owner-executor@ardi.com
- Precedence: bulk
-
- Scott Shuchart (shuchart@fas.harvard.edu) wrote:
- : THE PROBLEM: I need to convert a Mac TrueType font to a Windows TrueType
- : font. I have a DOS program which does this. Mac TT fonts
- : are stored in resource forks. If I take the Mac font
- : and copy it to a FAT volume in Executor, I get a 0-byte
- : data fork-file (fontname, we'll call it), and a good-sized
- : %fontname file (~400k, say). The problem is that
- : the DOS program can't find the font info. in this file
- : (usually it can detect what kind of info. is in a file),
- : I think because the %fontname file has, in addition to
- : the resources, the finder information. I need a way of
- : getting JUST the resource fork, nothing else, into a
- : DOS file.
-
- THE SOLUTION:
-
- The Executor resource forks have a 512 byte information header
- that you need to strip off. Under linux, this can be done by doing:
-
- dd if=%filename of=filename.rsr bs=512 skip=1
-
- I don't know how this can be done under DOS without writing a custom
- program. If you need me to write one, I could probably do it in a
- few minutes, so let me know. :)
-
- BTW, the executor header may of variable length, it has just been my
- experience that 512 is the magic number. Executor staff care to comment?
- Is there a variable length structure in the executor resource header?
- If so, how does one calculate the resource offset?
-
- See ya!
- -Sam Lantinga (slouken@cs.ucdavis.edu)
-
- ---
- Author of Maelstrom for Linux, and another happy Executor customer. :-)
- ---
-
-