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