2

In the below MWE using TeX Gyre Pagella the ring above the A, as produced using \r{A}, is misplaced as shown below:

enter image description here

I expected it to render with the ring centered above the A, shown below, as when using Computer Modern:

enter image description here

MWE:

\documentclass{article}

\begin{document}
    \fontfamily{qpl}\selectfont
    \r{A}
\end{document}
  • I fixed this by importing the T1 font encoding using \usepackage[T1]{fontenc}, however I'm not sure why this is needed and will thus wait for someone else to come with a wiser answer. – miestasmia Aug 26 '17 at 11:15
3

Just use font encoding T1. Then you get the full glyph, not a composite one:

\documentclass{article}
\usepackage[T1]{fontenc}

\begin{document}
    \fontfamily{qpl}\selectfont
    \r{A}
\end{document}

Result

  • Is this really all the T1 font encoding does? I guess that works. – miestasmia Aug 26 '17 at 11:37
  • 3
    @miestasmia The default encoding OT1 is a 7-bit encoding without accented letters. Encoding T1 has place for 256 glyphs (8-bit) and provides slots for accented letters, that are provided by the TeX Gyre fonts. The result is one glyph (capital letter A with ring), designed by the font developers, instead of a more or less well placed ring accent on a capital letter A as with encoding OT1. – Heiko Oberdiek Aug 26 '17 at 11:41

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.