Posts Tagged “font”

I stumbled across a font I wanted to use in a personal project. But it was in a PDF file. I found that this guy knew the steps to extract them and install the font on your windows box.

To summarize:

  1. Use linux (at the moment Ubuntu 7.10)
  2. Install fontforge (~$ sudo apt-get install fontforge)
  3. Convert your PDF to PostScript via ~$ pdftops pdffilename.pdf
    • this step creates files named pdffilename.ps
  4. Open the PostScript file in your favourite editor – ~$ gedit pdffilename.ps
  5. Find the following and extract everything between the lines with BeginResource and EndResource (excluding the Being/EndResource lines):
    %%BeginResource: font CIKHFG+Schoensperger-Modified
    %!FontType1-1.0: CIKHFG+Schoensperger-Modified
    ...
    %%EndResource
    Save the extracted portions as with a pfa extension (there may be more than one section, so 1.pfa, 2.pfa … n.pfa)
  6. Open the pfa files in fontforge until you find the desired font ~$ fontforge 1.pfa
  7. Reencode the font as Latin1 (Encoding – Reencode – Latin1)
  8. Compact the font (Encoding – Compact).
  9. Adjust the garbled font name (Element – Font Info – Names).
  10. Generate a TrueType or PostScript Type1 font to your liking (File – Generate Fonts).