Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

My question is closely related to Glyph substitution: alternate capital Q in URW-Garamond? (LaTeX, Mac OS X) but I am using XeLateX. It looks like there is a hidden mechanism that I do not understand. I had a look at all the glyphs of the font using dp4FontViewer 2.0 and I could not find the Q with the very long swash. Instead, the two Qs shown on the right side of the image below are accessible. Q with code 0051 is used when it is isolated in the main text. It'd be nice if it could replace the one with the long swash which takes place in words with more than a single letter (a single Q then).

enter image description here

share|improve this question
    
I think it is a ligature. So you need some characters after Q to trigger that. –  percusse May 30 '12 at 10:06
    
and do you know a way to not trigger that? –  pluton May 30 '12 at 13:12
    
I've asked in the chat so probably one of our wizards would step in. –  percusse May 30 '12 at 13:26
    
Thank you. And also, I can see the other ligatures of the font in the table of glyphs but not this one, which looks strange to me. –  pluton May 30 '12 at 13:29
    
It's probably not a ligature but a context-dependent alternate glyph. Search for "CharacterVariant" in the fontspec documentation. You can also try if Q\/ue helps but that's more of an experiment, not a solution. –  Christian May 30 '12 at 15:05

1 Answer 1

up vote 4 down vote accepted

Your question (XeLaTeX) has been accidentally answered by Tobi at Glyph substitution: alternate capital Q in URW-Garamond? (LaTeX, Mac OS X).

You can use fontspec to switch off the contextual alternates (code by Tobi):

\documentclass{article}

\usepackage{fontspec}
\newopentypefeature{Contextuals}{NoAlternate}{-calt}
\defaultfontfeatures{Kerning=Uppercase,Mapping=tex-text,}
\setmainfont{Garamond Premier Pro}


\begin{document}
Quad Qed

\addfontfeatures{Contextuals=NoAlternate}
Quad Qed
\end{document}

q-swash

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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