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

  1.     id m0txIT4-0007qQa; Thu, 14 Mar 96 12:13 MST
  2. Sender: owner-executor
  3. Received: from ardi.com by ftp.ardi.com
  4.     (Smail3.1.29.1 #3) id m0txISV-0007qCn; Thu, 14 Mar 96 12:13 MST
  5. Path: sloth.swcp.com!usenet
  6. From: Clifford T. Matthews <ctm@ardi.com>
  7. Newsgroups: comp.emulators.mac.executor
  8. Subject: Re: Resource -> Data fork help
  9. Date: 14 Mar 1996 11:32:44 -0700
  10. Organization: ARDI
  11. Lines: 42
  12. Message-ID: <uf7mwnjzjn.fsf@ftp.ardi.com>
  13. References: <4i8din$7k4@decaxp.harvard.edu>
  14. NNTP-Posting-Host: ftp.ardi.com
  15. In-reply-to: shuchart@fas.harvard.edu's message of 14 Mar 1996 06:15:51 GMT
  16. X-Newsreader: Gnus v5.0
  17. To: executor@ardi.com
  18. X-MailNews-Gateway: From newsgroup comp.emulators.mac.executor
  19. Sender: owner-executor@ardi.com
  20. Precedence: bulk
  21.  
  22. >>>>> "Scott" == Scott Shuchart <shuchart@fas.harvard.edu> writes:
  23. In article <4i8din$7k4@decaxp.harvard.edu> shuchart@fas.harvard.edu (Scott Shuchart) writes:
  24.  
  25.  
  26.     Scott>     Wow.  I've finally found a Mac --> PC cross-platform
  27.     Scott> problem Executor can't seem to help me with, so here's an
  28.     Scott> appeal for a (preferrably freeware) solution to a small
  29.     Scott> problem.
  30.  
  31.     Scott> THE PROBLEM: I need to convert a Mac TrueType font to a
  32.     Scott> Windows TrueType font.  I have a DOS program which does
  33.     Scott> this.  Mac TT fonts are stored in resource forks.  If I
  34.     Scott> take the Mac font and copy it to a FAT volume in Executor,
  35.     Scott> I get a 0-byte data fork-file (fontname, we'll call it),
  36.     Scott> and a good-sized %fontname file (~400k, say).  The problem
  37.     Scott> is that the DOS program can't find the font info. in this
  38.     Scott> file (usually it can detect what kind of info. is in a
  39.     Scott> file), I think because the %fontname file has, in addition
  40.     Scott> to the resources, the finder information.  I need a way of
  41.     Scott> getting JUST the resource fork, nothing else, into a DOS
  42.     Scott> file.
  43.  
  44. When you save a file to a non-HFS filesystem, Executor uses
  45. AppleDouble, which stores the data fork in one file and all the rest
  46. of the file information (including a table of contents) in a separate
  47. file.  We have deliberately set things up so that the resource fork
  48. will always begin at byte offset 512 in the %file.
  49.  
  50.     Scott> Ideas?  Thanks.  Please e-mail suggestions, files to look
  51.     Scott> for on Info-MAC, etc.
  52.  
  53. As long as the AppleDouble files you're dealing with were created by
  54. Executor, you only need to remove the first 512 bytes to get the
  55. resource fork.  If you want a general solution that will work with
  56. non-Executor created AppleDouble files, then you'll need to parse the
  57. table of contents yourself, something I can help you with, but I'd
  58. guess you don't need to do that.
  59.  
  60.     Scott> Scott Shuchart shuchart@fas.harvard.edu
  61.  
  62. --Cliff
  63. ctm@ardi.com
  64.  
  65.