TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can someone help to install the ocr-a font? I'm using fedora, I'm trying to find a proper tutorial but cannot find a good one.

share|improve this question
See: tug.dk/FontCatalogue/ocr-a – Marco Daniel Apr 1 '13 at 17:45
Welcome to TeX.SX. – Claudio Fiandrino Apr 1 '13 at 17:52

The following should do:

  1. Download the zip file http://mirrors.ctan.org/fonts/ocr-a.zip

  2. Unzip it: unzip ocr-a.zip

  3. Do cd ocr-a and edit the ocr10.mf, ocr12.mf and ocr16.mf files so that their last line reads input ocr-a instead of input ocra (this is a bug in the distribution)

  4. Do cd .. to get one level up

  5. Do the following commands in super user mode (I'll use sudo, assuming a Bash shell)

    sudo mkdir -p $(kpsewhich -var-value=TEXMFLOCAL)/fonts/source
    sudo mv ocr-a $(kpsewhich -var-value=TEXMFLOCAL)/fonts/source/
    sudo mktexlsr
  6. Try compiling the following plain TeX file (pdftex tryocra)

    %%% File name tryocra.tex

The result should be as follows

enter image description here

A ZIP file with the fonts converted to Type1 and OpenType, along with a style file for getting them with LaTeX is available here, with instructions for installation on a Unix system with TeX Live.

share|improve this answer
But when I need to write one piece of text, should i do it like \ocraten{test} ?? – Noor Apr 2 '13 at 11:01
@user1774937 Do you want to use it in LaTeX? – egreg Apr 2 '13 at 11:07
its working, great thanks – Noor Apr 2 '13 at 22:44
Is step 3. in general needed? – 71GA May 23 '13 at 6:08
@71GA It's needed in this case because of the mentioned bug. – egreg May 23 '13 at 9:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.