Thanks, Wolfgang, that was another step in the right direction. Could you help me with the next step? This is what I did so far. (N.B. I'm not interested in TeX's standard fonts. I want to use my own type1 and otf fonts which are in c:\fonts).

1. I set OSFONTDIR to c:\fonts
2. I ran mtxrun --script font --reload

That was succesfull. Mtxrun recursed the entire font directory tree.

3. I ran mtxrun --script fonts --list --pattern=*stone*.
I got about twenty lines of output in three columns. Here is an example:

stonesans  StoneSans c:/fonts/ITC Stone Sans/SS______.AFM

So far, so good. Now, I want to use this font and you included a link to a Wiki article. This article says I have to use a typescript. The example typescript from the Wiki uses the \definetypeface command. I searched everywhere for a good description of this command, but wasn't able to find one, unfortunately. Using the example from the Wiki:

\definetypeface [Bonum] [rm] [serif] [bonum] [default]

how would I use this command to be able to use my Stone Sans font from the mtxrun output? In the [Bonum] example I can't find a reference to a font file of the type c:\fonts\etc.....

Any help would be greatly appreciated.

Thanks, Harrie.





On Fri, Jul 17, 2009 at 11:53 AM, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:

Am 17.07.2009 um 11:11 schrieb Harrie Frericks:


Could someone show me how to use type1 font files with Luatex without having to go the TexFont route.

When you placed your fonts in the TeX directory (afm plus pfb files) regenerate the file database
with 'context --generate' to let ConTeXt know about the new files.

To see what the real names of the fonts is you can show the complete list on the terminal with
'mtxrun --script fonts --list', you can narrow down the list with names when you use a search
pattern what could e in your case something like 'mtxrun --script fonts --list --pattern=*stone*'

When you're font is not listed in the output from mtxrun update also the font database with
the command 'mtxrun --script font --regenrate'.

To use the fonts in your document you can write a typescript for them by hand [1] or use
the simplefonts module which offers a simpler method and does the hard work itself hidden
for the user.

[1] http://wiki.contextgarden.net/Fonts_in_LuaTex

Wolfgang


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________