Difference between revisions of "Otfinstall - Old Content"

From Wiki
Jump to navigation Jump to search
(otfinst description)
 
m (category fonts added)
Line 56: Line 56:
  
 
current version is 0.1 (in reality, it is 0.0.0.0.0.0.1)
 
current version is 0.1 (in reality, it is 0.0.0.0.0.0.1)
 +
 +
[[Category:Fonts]]

Revision as of 13:48, 25 May 2007

otfinst

otfinst is a small ruby script that allows you to install OpenType fonts and use them with pdftex/context. It is a frontend to the lcdf type tools, so you need them installed (they come with the texlive 2007).

Download

get otfinstall from [1]. Unzip it and have a look at the example scripts in the directory examples.

Example usage

To run otfinst.rb you need a oinst file. It looks like this:

vendor      "adobe"
collection  "chaparral"

# 'sans' or 'serif'
fontclass   "serif"

# Allowed variants are 'default', 'osf'
variants    %w(default osf)

# Supported faces are 'regular' 'bold' 'italic' and 'bolditalic'
regular     "ChaparralPro-Regular.otf"
bold        "ChaparralPro-Bold.otf"
italic      "ChaparralPro-Italic.otf"
bolditalic  "ChaparralPro-BoldIt.otf"

Then you can run otfinst.rb like this:

ruby otfinst.rb -f <where your fonts are> yourfont.oinst

The fonts have to be in the directory given in the command line, such as

ruby otfinst.rb -f otffonts yourfont.oinst

and the directory structure has to be like this (from the example above)

.
`-- otf
    `-- adobe
        `-- chaparral
            |-- ChaparralPro-Bold.otf
            |-- ChaparralPro-BoldIt.otf
            |-- ChaparralPro-Italic.otf
            `-- ChaparralPro-Regular.otf

The result is a texmf directory in tds layout with all necessary files for ConTeXt/pdftex. Just copy these files into your local texmf tree or set the TEXMFHOME environment variable to use the fonts. There is also a sample file in texmf/tex/example.

Misc

current version is 0.1 (in reality, it is 0.0.0.0.0.0.1)