Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
1  
Welcome to TeX.SX. –  Claudio Fiandrino Apr 1 '13 at 17:52
add comment

1 Answer

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
    \font\ocraten=ocr10
    \ocraten
    
    ABCDEFGHIJKLMNOPQRSTUVZ
    
    \bye
    

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} ?? –  user1774937 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 –  user1774937 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
add comment

Your Answer

 
discard

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.