Open main menu

Changes

otfinst description
= 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 [http://dl.contextgarden.net/support/fonts/]. Unzip it and have a look at the example scripts in the directory <tt>examples</tt>.

== Example usage ==

To run otfinst.rb you need a <tt>oinst</tt> file. It looks like this:

<pre>
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"
</pre>

Then you can run otfinst.rb like this:
<pre>
ruby otfinst.rb -f <where your fonts are> yourfont.oinst
</pre>

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

<pre>
ruby otfinst.rb -f otffonts yourfont.oinst
</pre>
and the directory structure has to be like this (from the example above)

<pre>
.
`-- otf
`-- adobe
`-- chaparral
|-- ChaparralPro-Bold.otf
|-- ChaparralPro-BoldIt.otf
|-- ChaparralPro-Italic.otf
`-- ChaparralPro-Regular.otf
</pre>

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)