I'm noob at ConTeXt. I want to use auto2 font with ConTeXt, I think the easiest way to do that is using the XeTeX backend. ConTeXt can do some protrusion with pdfTeX and LuaTeX, but with XeTeX it doesn't, but as far as I know XeTeX does marging kerning. So why I need to enable it under ConTeXt?

Any clue would be very appreciated!

  • 4
    Have you tried enabling protrusion using the method for MkII? And ConTeXt MkIV (luatex backend), does support system fonts. So, I will recommend using ConTeXt MkIV. – Aditya Mar 24 '12 at 21:32
  • I've just tried it, fortunately there wasn't too much differences between the LuaTeX backend and the XeTeX one in my document. Finally it works! Thank you so much! – Blablabla Mar 25 '12 at 12:34
  • @Aditya Make your comment an answer? – Joseph Wright May 6 '12 at 9:09

If you don't mind using luatex (ConTeXt MkIV), you can do the following:

%\setupframedtext  [align=hanging]
\definefontfeature [default] [default]
    %protrusion=quality, % partial protrusion
     protrusion=pure,    % full protrusion

\setupalign [hanging]

  \input knuth


For \framed and framedtext protrusion is not enabled by default. You have to set that explicitly (see commented first line). There are several values for the protrusion key:

pure - full protrusion of only selected punctuation
punctuation - partial protrusion of punctuation and some asymmetrical letters
alpha - variable correction of character widths
quality - combination of punctuation and alpha

See ConTeXt wiki - Protrusion

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.