Difference between revisions of "Otfinstall - Old Content"

From Wiki
Jump to navigation Jump to search
(Small fixes)
Line 54: Line 54:
 
== Misc ==
 
== Misc ==
  
current version is 0.1 (in reality, it is 0.0.0.0.0.0.1)
+
current version is 0.2
  
= Installing Adobe Fonts =
+
Please report problems to patrick <at> contextgarden.net
 
 
I tested my install with TeXLive 2008 on Ubuntu 8.10 and it worked perfectly.  You need to get my script as Patrick's script has a few bugs, such as not generated a correct typescript when ''sans'' is specified and ignores ''osf'' (old style numeral) parameter.
 
 
 
My <tt>.oinst</tt> differs only in that you don't specify the ''osf'' parameter in ''Variants''---It's generated by default, just modify the Ruby script if you don't wan't it to behave as such.  Make sure you have the same directory structure as above. 
 
 
 
Make a test directory in, say, your $HOME.
 
 
 
  mkdir oftinstall
 
  cd oftinstall
 
 
 
Test my script
 
 
 
  wget myscript.rb
 
 
 
 
== WarnockPro ==
 
 
 
Get my <tt>.oinst</tt> file for WarnockPro, which saves you the effort of copy-and-pasting it.
 
 
 
  wget warnockpro.oinst
 
 
 
 
 
  ruby otfinst.rb -f adobe warnockpro.inst
 
 
 
== CronosPro ==
 
 
 
 
 
 
 
== MinionPro ==
 
 
 
== Problems ==
 
 
 
Report problems to http://article.gmane.org/gmane.comp.tex.context/47052 thread.
 
  
 
[[Category:Fonts]]
 
[[Category:Fonts]]

Revision as of 19:41, 19 March 2009

otfinstall

otfinstall 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)

.
`-- 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.2

Please report problems to patrick <at> contextgarden.net