![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
On Nov 22, 2007 12:01 PM, Steffen Wolfrum wrote:
Hi Mojca,
I tried your example below and struggled in path error:
%\starttypescript[serif][gentium-basic] %\definefontsynonym[GentiumBasic] [file:GenBasR] [features=default] %\definefontsynonym[GentiumBasicItalic] [file:GenBasI] [features=default] %\definefontsynonym[GentiumBasicBold] [file:GenBasB] [features=default] %\definefontsynonym[GentiumBasicBoldItalic][file:GenBasBI] [features=default] %\stoptypescript
%\starttypescript[serif][gentium-basic][name] %\definefontsynonym[Serif] [GentiumBasic] %\definefontsynonym[SerifItalic] [GentiumBasicItalic] %\definefontsynonym[SerifBold] [GentiumBasicBold] %\definefontsynonym[SerifBoldItalic][GentiumBasicBoldItalic] %\stoptypescript
%\definetypeface[mygentium][rm][serif][gentium-basic][default]
%\setupbodyfont[mygentium,36pt]
\font\rom="Gentium Basic" at 36pt
\starttext
Test WQG 0196
\rom Test WQG 0196
\stoptext
Doing it like this works OK. But uncommenting the lines above ends up in ...
kpathsea: Running mktexmf GenBasR
! I can't find file `GenBasR'.
But isn't it the same font/file adressed in both cases?
(sorry, I am an absolute beginner in xetex)
No, my typescripts defile the font to be GenBasR.otf or GenBasR.ttf Apparently you have installed the font (I provided the example for the case when one puts fonts in TEXMF tree). In that case you need (for LuaTeX you might need to provide other names - not sure) \starttypescript[serif][gentium-basic] \definefontsynonym[GentiumBasic] [name:Gentium Basic] [features=default] \definefontsynonym[GentiumBasicItalic] [name:Gentium Basic/I] [features=default] \definefontsynonym[GentiumBasicBold] [name:Gentium Basic/B] [features=default] \definefontsynonym[GentiumBasicBoldItalic][name:Gentium Basic/BI] [features=default] \stoptypescript or, even more simple would be the following one-liner: \definetypeface[mygentium][rm][Xserif][Gentium Basic][default] Mojca