I'm using ConTeXt, with XeTex.
So I'm compiling my document: texexec --xetex foo.tex
I would like to follow the convertion of having my headings all in Sans Serif, and my body text in Serif. I want to do this with my own fonts:
%&context
\definetypeface[BerlinSSDB][ss][sans][Berlin Sans FB Demi]
\definetypeface[Minion][rm][Xserif][Minion Pro]
\setupbodyfont[Minion, 12pt]
\setuphead[chapter][
style=\ss,
sectionnumber=yes
]
\setuphead[section][
style=\ss,
sectionnumber=no
]
\starttext
\chapter{Welcome}
A well known text, used to fill space.
\section{H. Rackham 1914}
But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness... But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?
\stoptext
Everything, headings, body and all is coming up in Minion Pro.
This seems reasonable since no where have I told it what font to use,
except to say "Use Minion".
(I believe \setupbodyfont, uses the word body with a different meaning to what I have here.)
texexec <file>it's pdfTeX with MkII, if you compile withtexexec --xetex <file>it's xeTeX with MkII (not well supported) and if you compile withcontext <file>it's LuaTeX with MkIV. When you're in doubt what to use, go forcontext <file>. – Marco Jul 20 '12 at 13:21