home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / fonts / 3400 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.8 KB

  1. Path: sparky!uunet!gatech!concert!rutgers!igor.rutgers.edu!zodiac.rutgers.edu!leichter
  2. From: leichter@zodiac.rutgers.edu
  3. Newsgroups: comp.fonts
  4. Subject: Re: (Help)create TeX pk/tfm from scanned image/logo
  5. Message-ID: <1992Nov18.075731.1@zodiac.rutgers.edu>
  6. Date: 18 Nov 92 12:57:31 GMT
  7. References: <1992Nov16.090443.18748@ntuix.ntu.ac.sg>
  8. Sender: news@igor.rutgers.edu
  9. Organization: Rutgers University Department of Computer Science
  10. Lines: 29
  11. Nntp-Posting-Host: cancer.rutgers.edu
  12.  
  13. In article <1992Nov16.090443.18748@ntuix.ntu.ac.sg>, eljcao@ntuix.ntu.ac.sg
  14. (L.J. Cao) writes:
  15. | After run through scanner, I have obtained the university logo 
  16. | in WMF/PCX/GIF/CGM/EPS... format. How do I create a .tfm and .pk
  17. | file from that, so I can use them in LaTeX without \special and
  18. | DVIPS?
  19.  
  20. In principle, this is easy; in practice, it's not because there is no standard
  21. software around to provide this transformation.
  22.  
  23. There are two parts to the problem:  The .PK file and the .TFM file.
  24.  
  25. The latter is actually quite an easy manual job.  The Property List format,
  26. which can be converted back and forth to TFM format with TFTOPL and PLTOTF,
  27. is easy to read and generate by hand.  It would be a pain for a whole font,
  28. but for a logo, which is only one character and requires no real spacing
  29. information, it would be trivial.
  30.  
  31. Creating the PK file is tougher, since the algorithm for compressing stuff
  32. into PK format is quite complex.  If I need to do this, I'd probably use the
  33. bitmap to build an old PXL-format file (those were very trivial), then use
  34. PXTOPK to convert the PXL to a PK.  But there may be other xxTOPK converters
  35. around that would be handier.
  36.  
  37. In any case, unless someone has already written a program to do exactly what
  38. you are trying to do, you will probably have to do some one-off coding and
  39. a bunch of manual work.
  40.                             -- Jerry
  41.