[Tex/LaTex] Libertine fonts not working in ConTeXt

contextfontslibertinemiktex

In a previous question about vertical rhythm, I was pointed at ConTeXt, which I am now trying to use. I first took the step from LaTeX to luaLaTeX in order to get simplified font selection and the possibility to use opentype fonts from the system or the directory of my tex file.

However, now that I use ConTeXt, fontspec (which was really straight forward) is no option any more. simplefonts is the next possibilty, but that doesn't ship with miktex (I have 2.9, win xp). I also have access to texlive 2010 running on Ubuntu, but that is not working as well. As I am more familiar with windows, I'm first trying to fix miktex. I installed context in addition to miktex 2.9 according to these instructions (Option 2) and everything seemed fine.

I am compiling the libertine sample from the ConTeXt wiki and get the following error:

pdfTeX error: pdftex (file fxlr): Font fxlr at 600 not found

I tried reloading the font with

mtxrun --script fonts --reload

with the result

MTXrun | unknown script 'fonts.lua' or 'mtx-fonts.lua'
  • What can I do to get the mtxrun to complete?
  • what else has to be done to make the libertine fonts available to context?
  • Also, how painful will it be (I'm absolutely frustrated regarding fonts.)?

Best Answer

Your error message says "pdftex". pdfTeX is not LuaTeX and so you are not using MkIV. The example won't work.

Forget the idea to use context with MiKTeX. There is a context in MiKTeX 2.9. (and it works) but it is not updated and the LuaTeX in MiKTeX is getting old. Also don't try to use something else as MkIV (that is ConTeXt over LuaTeX), ConTeXt is already complicated enough, there is no need to struggle with the installation of additional script languages like Ruby.

Get the ConTeXt minimals. And after you have initialized it with setuptex.bat compile your document with "context document".