I'm writing my masters thesis on LyX, using XeTeX for TeXLive, on Ubuntu.
For the first time I'd like to use my own fonts, which are OpenType fonts from Adobe. They are already installed on my system and in texmf. I have two problems.
(1) I configured LyX for XeTeX and it works if I don't use any custom fonts. When I try to include
Code: Select all
\fontspec{Chaparral Pro}
Code: Select all
\usepackage[T1]{fontenc}
(2) When I remove this line manually and run XeTeX also manually, I get no errors and the PDF file appears with my custom font, but not for headings. When there is text that is not regular (e.g. bold or italic), XeTeX gives errors.
I'd like to get LyX to remove the fontenc line, or work my way around this. But more importantly, I would like to know how to apply the font to all headings, and also include bold, italic and smallcaps.
Appreciate your help,