As per the Title: I would like to activate a swash or alternate only when I use italic.

I am aware than I can activate it globally during the \setmainfont section of the pre-amble but do not know how to set an effective 'rule' that whenever I put text in the \emph style, it also applies certain font styles.

I am using font spec and XeLaTeX.



  • do you really mean \emph or any italic. \emph just chooses between \textit and \textrm depending on the slope of the current font, do you want alternate glyphs if italic is chosen by \textit explicitly, and what do you want to happen if \emph chooses \textrm as the current font is already italic? – David Carlisle Oct 20 '14 at 11:46
  • any italic, really. I've been using \emph to activate as I've seen advised on here before. – Pwdr Oct 20 '14 at 11:47
  • well, as noted, \emph does not always choose an italic font, so it is bad markup if italic font is what you want. – David Carlisle Oct 20 '14 at 11:48
  • Ok. I can modify that. Is \textit better than the \itshape{} command? How would I go about setting the rule for either of those? – Pwdr Oct 20 '14 at 11:50
  • \textit and \itshape select the same font so make no difference to fontspec It looks like you can specify features for just italic fonts using italicfeatures key, see tex.stackexchange.com/questions/115286/… – David Carlisle Oct 20 '14 at 11:58

You can specify features just for Italic using fontspecs ItalicFeatures key:

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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