[Tex/LaTex] Italic/bold font in Lyx

boldfontsitaliclyx

I am using the latest version of lyx and I have selected a custom roman font in the settings menu in my document. I am using this font: http://www.fontspace.com/roger-white/oxford

The problem I am encountering is that in the compiled PDF italic and bold text doesn't appear italic or bold, they appear without any special formatting. I know my font 'supports' bold/italic as I have the same font selected to use in the lyx editor and bold and italics show up properly.

Any ideas why this may be happening?

Best Answer

Opening the font in Font Manager it appears that the Oxford font does not have bold and italic features -- these show as being provided by the rendering library, as opposed to being provided by a font file. I would guess that LyX just fakes these features in the editor view.

As you yourself mention in a comment, fontspec (the package that handles loading of True Type and Open Type fonts) can fake these features, by adding to the preamble

\setmainfont[AutoFakeBold,AutoFakeSlant]{Oxford}

Note that you have to use the XeTeX engine for this to work (at least the fake bold), so use View --> View (Other formats) --> PDF (XeTeX), and the equivalent for updating. This does not work with the LuaTeX engine.