Would you mind explaining to me why the following ConTeXt code does not work and how I can fix it?


\definefontfamily[mainface][serif][Heisei Mincho Std][tf=file:HeiseiMinStd-W3.otf, bf=file:HeiseiMinStd-W7.otf]

\setupbodyfont[mainface, serif, 11pt]
\definebodyfontenvironment[default][a=1.09, b=1.18, x=0.9, xx=0.89]


渡辺 謙(わたなべ けん、1959年10月21日 - )は、日本の俳優。本名同じ。


After typesetting (TeXShop: ConTeXt (LuaTeX)), the result is a blank page. Thanks in advance.

  • 2
    Does ConTeXt find the font files? You can run the following example to test it: \starttext \doifelsefontpresent{HeiseiMinStd-W3}{YES}{NO} \stoptext Jan 17, 2016 at 16:13
  • Thanks for your help @Metafox . The command "\doifelsefontpresent{HeiseiMinStd-W3}{YES}{NO}" does absolutely nothing. I tried to replace the japanese text with a french text and it still does not work. The page I get is blank. Jan 18, 2016 at 10:17
  • You should have used the command in a document without any custom fonts. Jan 18, 2016 at 10:27
  • Now it works. The answer is YES. Jan 18, 2016 at 10:49
  • @ Metafox . Sorry I didn't tag you on my last comment. Jan 18, 2016 at 11:07

1 Answer 1


You can use your fonts with a short typescript for them.

\starttypescript [serif] [heisei]
    \definefontsynonym [Serif]     [file:HeiseiMinStd-W3.otf]
    \definefontsynonym [SerifBold] [file:HeiseiMinStd-W7.otf]

\definetypeface [mainface] [rm] [serif] [heisei] [default] [features=default]
\definetypeface [mainface] [mm] [math]  [modern] [default]





渡辺 謙(わたなべ けん、1959年10月21日 - )は、日本の俳優。本名同じ。

  • Thank you so much for your help @Metafox. It works great now.Could you explain what went wrong in my code? I do not fully understand the difference between the \definefontfamily mechanism and the typescript/typeface mechanism. Thanks in advance. Feb 1, 2016 at 18:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .