1

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!

3
  • 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
    Commented Mar 24, 2012 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
    Commented Mar 25, 2012 at 12:34
  • @Aditya Make your comment an answer?
    – Joseph Wright
    Commented May 6, 2012 at 9:09

1 Answer 1

3

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]

\showframe
\starttext
  \input knuth
\stoptext

result

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

You must log in to answer this question.

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