home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / dos / extra / docs / maillist / text / archive.96 / text2731.txt < prev    next >
Encoding:
Text File  |  1996-07-25  |  2.5 KB  |  58 lines

  1.     id m0txs3h-0007qWa; Sat, 16 Mar 96 02:13 MST
  2. Sender: owner-executor
  3. Received: from ardi.com by ftp.ardi.com
  4.     (Smail3.1.29.1 #3) id m0txs38-0007qCn; Sat, 16 Mar 96 02:13 MST
  5. 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
  6. From: slouken@cs.ucdavis.edu (Sam Oscar Lantinga)
  7. Newsgroups: comp.emulators.mac.executor
  8. Subject: Re: Resource -> Data fork help
  9. Date: 14 Mar 1996 18:11:09 GMT
  10. Organization: University of California, Davis
  11. Lines: 36
  12. Message-ID: <4i9nft$44e@mark.ucdavis.edu>
  13. References: <4i8din$7k4@decaxp.harvard.edu>
  14. NNTP-Posting-Host: maybach.cs.ucdavis.edu
  15. X-Newsreader: TIN [version 1.2 PL2]
  16. To: executor@ardi.com
  17. X-MailNews-Gateway: From newsgroup comp.emulators.mac.executor
  18. Sender: owner-executor@ardi.com
  19. Precedence: bulk
  20.  
  21. Scott Shuchart (shuchart@fas.harvard.edu) wrote:
  22. : THE PROBLEM:     I need to convert a Mac TrueType font to a Windows TrueType
  23. :              font.  I have a DOS program which does this.  Mac TT fonts
  24. :         are stored in resource forks.  If I take the Mac font
  25. :         and copy it to a FAT volume in Executor, I get a 0-byte
  26. :         data fork-file (fontname, we'll call it), and a good-sized
  27. :         %fontname file (~400k, say).  The problem is that
  28. :         the DOS program can't find the font info. in this file
  29. :         (usually it can detect what kind of info. is in a file),
  30. :         I think because the %fontname file has, in addition to
  31. :         the resources, the finder information.  I need a way of 
  32. :         getting JUST the resource fork, nothing else, into a
  33. :         DOS file.
  34.  
  35.  THE SOLUTION:
  36.  
  37.     The Executor resource forks have a 512 byte information header
  38. that you need to strip off.  Under linux, this can be done by doing:
  39.  
  40.     dd if=%filename of=filename.rsr bs=512 skip=1
  41.  
  42. I don't know how this can be done under DOS without writing a custom
  43. program.  If you need me to write one, I could probably do it in a
  44. few minutes, so let me know. :)
  45.  
  46. BTW, the executor header may of variable length, it has just been my 
  47. experience that 512 is the magic number.  Executor staff care to comment?
  48. Is there a variable length structure in the executor resource header?
  49. If so, how does one calculate the resource offset?
  50.  
  51. See ya!
  52.     -Sam Lantinga            (slouken@cs.ucdavis.edu)
  53.  
  54. ---
  55. Author of Maelstrom for Linux, and another happy Executor customer. :-)
  56. ---
  57.  
  58.