When I load TeX Gyre Pagella using fontspec's setmainfont command and try to use a hacek above an i, it is misplaced.
The reason I am using fontspec is because I want old style numbers to be the default, and I can set that with fontspec's setmainfont.
If I instead load TeX Gyre Pagella using fontenc and tgpagella, the hacek is aligned properly.
However, if I do this, I have to manually specify that I want to use old style numbers using \oldstylenums{}, which is a real pain (including specifying them in things like enumerated lists, page numbers, etc., which requires manually tweaking a bunch of things I'd rather not have to mess with).
Is there a way to load the correct glyph while still using fontspec? Or else some way to manually adjust it to look right?
MWE:
\documentclass{article}
%\usepackage[T1]{fontenc}
%\usepackage{tgpagella} % These work for \v{\i}, but no default old style numbers
\usepackage{fontspec}
\setmainfont[Numbers=OldStyle]{TeX Gyre Pagella} % Default old style numbers, but bad \v{\i}
\begin{document}
\v{\i}
\end{document}
Edit: As Thérèse's comment makes apparent, it might be relevant that I'm using XeLaTeX.


texgyrepagella-regular.otf– David Purton Jul 03 '21 at 04:19Edit: Yup, that fixed it. This could be closed or deleted now; not sure which would be best.
– Jigsaw Jul 03 '21 at 04:36tgpagellapackage is usingfontspecat all.qplris an 8bit font. Iflualatexis working, you want to compare which font that is using with whatxelatexis picking up. – David Purton Jul 03 '21 at 04:45[T1]{fontenc}with xelatex (all hyphenation will be wrong for any words with non ascii letters) if using xelatex you need to use teh opentype version of the font.texgyrepagella-regular.otf(but check you don't have an old copy installed sonewhere masking the version that comes with texlive) – David Carlisle Jul 03 '21 at 09:56\XeTeXtracingfonts=1to your document and check what the log says about the actual font uses – Ulrike Fischer Jul 03 '21 at 10:29