Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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!

share|improve this question
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

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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