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

  1. >>>>> "Scott" == Scott Shuchart <shuchart@fas.harvard.edu> writes:
  2. In article <4i8din$7k4@decaxp.harvard.edu> shuchart@fas.harvard.edu (Scott Shuchart) writes:
  3.  
  4.  
  5.     Scott>     Wow.  I've finally found a Mac --> PC cross-platform
  6.     Scott> problem Executor can't seem to help me with, so here's an
  7.     Scott> appeal for a (preferrably freeware) solution to a small
  8.     Scott> problem.
  9.  
  10.     Scott> THE PROBLEM: I need to convert a Mac TrueType font to a
  11.     Scott> Windows TrueType font.  I have a DOS program which does
  12.     Scott> this.  Mac TT fonts are stored in resource forks.  If I
  13.     Scott> take the Mac font and copy it to a FAT volume in Executor,
  14.     Scott> I get a 0-byte data fork-file (fontname, we'll call it),
  15.     Scott> and a good-sized %fontname file (~400k, say).  The problem
  16.     Scott> is that the DOS program can't find the font info. in this
  17.     Scott> file (usually it can detect what kind of info. is in a
  18.     Scott> file), I think because the %fontname file has, in addition
  19.     Scott> to the resources, the finder information.  I need a way of
  20.     Scott> getting JUST the resource fork, nothing else, into a DOS
  21.     Scott> file.
  22.  
  23. When you save a file to a non-HFS filesystem, Executor uses
  24. AppleDouble, which stores the data fork in one file and all the rest
  25. of the file information (including a table of contents) in a separate
  26. file.  We have deliberately set things up so that the resource fork
  27. will always begin at byte offset 512 in the %file.
  28.  
  29.     Scott> Ideas?  Thanks.  Please e-mail suggestions, files to look
  30.     Scott> for on Info-MAC, etc.
  31.  
  32. As long as the AppleDouble files you're dealing with were created by
  33. Executor, you only need to remove the first 512 bytes to get the
  34. resource fork.  If you want a general solution that will work with
  35. non-Executor created AppleDouble files, then you'll need to parse the
  36. table of contents yourself, something I can help you with, but I'd
  37. guess you don't need to do that.
  38.  
  39.     Scott> Scott Shuchart shuchart@fas.harvard.edu
  40.  
  41. --Cliff
  42. ctm@ardi.com
  43.  
  44.