Is there a way to use kpfonts with fontspec ?
The math font is correctly used but just loading the kpfonts package is not enough for the text. If I add the \setmainfont line (see example) the kp font is used everywhere but bold text is not bold. If I add the \fontencoding line (see example) it is used correctly in the text (including bold) but not for the section titles (either regular kp font or bold computer modern font whether the other line is present or not). I don't really know what this line does (saw it somewhere on the internet).
Here is my minimal (non)working example:
\documentclass[article,a4paper,oneside]{memoir}
\usepackage{kpfonts}
\usepackage{fontspec}
\setmainfont[ExternalLocation]{jkpmn8a.pfb}
\begin{document}
\fontencoding{T1}\fontfamily{jkp}\selectfont
\section{section}
\section{other section}
\subsection{my subsection}
bla bla bla. \textbf{bold}
$v_t : \mathbb{R}^3 \rightarrow \mathbb{R}^3 $
\end{document}
fontencor TrueType/OpenType fonts withfontspec. – Speravir May 22 '13 at 18:30fontenc, but this would need a map file – and this is missing for almost all fonts. – Speravir May 22 '13 at 18:37