2

This question already has an answer here:

Today, After reading the chapters about typography and fonts in the reference manual, I tried to define my own typescript. After mtxrun --script fonts --reload, I wrote the codes like this:

    % century.ttf in C:\Windows\Fonts
    \starttypescript[serif][centuryfont][name]
    \definefontsynonym[Serif][century]
    \stoptypescript
    \definetypeface[newfont][rm][serif][centuryfont][default]
    \setupbodyfont[newfont,12pt]
    \starttext
     ...
    \stoptext

It is so small, but only to test my usderstanding. When it succeeded, I changed the century in the third line to palatinolinotyperoman which could be searched by mtxrun --script fonts --list --all --pattern=pala*. Sadly, this font(pala.ttf) cannot be loaded.

I don't know why :-(

marked as duplicate by Aditya, Kurt, Speravir, Guido, Werner Mar 23 '13 at 5:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Have a look at: Use .otf/.ttf in ConTeXt MKiV/LuaTeX If that does not help, please show the exact error message you get. Or try if directly loading the font with \definedfont[file:century.ttf] works. – Marco Mar 22 '13 at 17:59
  • @Marco, Now, it works if I define the synonym like \definefontsynonym[Serif][name:palatinolinotyperoman] rather than \definefontsynonym[Serif][palatinolinotyperoman], though I still don't know the reason. – Lucas Li Mar 22 '13 at 18:15
  • 2
    This is explained in my answer to “How do I use a particular font” section “How do I select the font?” – Marco Mar 22 '13 at 18:24

Browse other questions tagged or ask your own question.