4

I would like to type a word using Unicode character U+1E17 (Latin small letter e with macron and acute) using the TeX Gyre Pagella font (a clone of Palatino Linotype). However, when I do so the acute accent is too low. Is there a way to rectify this?

Below is a MWE:

\documentclass{article}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Pagella}
\begin{document}
\textit{\huge{\char"1E17th}} \textsc{\huge{test}}
\end{document}

eth

Edit: I could set Palatino (NOT Palatino Linotype) as the main font, but then I would not be able to use small caps

\documentclass{article}
    \usepackage{unicode-math}
    \setmainfont{Palatino}
    \begin{document}
    \textit{\huge{\char"1E17th}} \textsc{\huge{test}}
    \end{document}

TeX Gyre Pagella Palatino

7
  • 1
    with xelatex your test file makes this output Commented Jul 10, 2019 at 18:54
  • 1
    I can't reproduce either.
    – egreg
    Commented Jul 10, 2019 at 19:03
  • 2
    with luatex I get no e at all and the log Missing character: There is no ḗ (U+1E17) in font TeXGyrePagella/I:mode=node;s Commented Jul 10, 2019 at 19:04
  • @egreg you get that ^^ ? Commented Jul 10, 2019 at 19:04
  • 1
    Is your system up-to-date? Commented Jul 10, 2019 at 19:14

3 Answers 3

4

I can not reproduce your output with texlive 2019, I tried your test file with xelatex, lualatex and with minor changes the experimental harflatex with the following results.

xetex

enter image description here

harftex

enter image description here

luatex

enter image description here

3
  • The only possible option for me is to use xelatex as it is the only typesetting engine compatible with reledmac (I didn't deem it necessary to specify that in the MWE). Also, I use TexPad for Mac and everything seems up to date.
    – Catoblepa
    Commented Jul 10, 2019 at 19:49
  • @Catoblepa it would have (helped if you'd specified xetex as you see the luatex output is completely different) also say which release, you must I think have older copies of the fonts. Commented Jul 10, 2019 at 19:56
  • 1
    @Catoblepa reledmac works with pdflatex and lualatex as well as xelatex Commented Jul 10, 2019 at 20:15
3

The font does not support the U+1E17 character.

HarfBuzz (in XeTeX and HarfTeX), helpfully decompose it into e + combining macron + combining + combining acute (U+0304 and u+0301), which luckily is rendered acceptably by the font (at least the version included in TeX Live 2019).

You can achieve the same effect on other engines (well, LuaTeX with luaotfload) by doing the decomposition manually

\documentclass{article}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Pagella}
\begin{document}
\textit{\huge{e\char"0304\char"0301th}} \textsc{\huge{test}}
\end{document}

LuaTeX rendering of the document above

Alternatively you can keep using TeX Gyre Pagella for smallcaps, and use a different font for the rest of the text:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Palatino}
[
        SmallCapsFont={TeX Gyre Pagella},
        SmallCapsFeatures={Letters=SmallCaps},
]
\begin{document}
\textit{\huge{\char"1E17th}} \textsc{\huge{test}}
\end{document}
1
  • 1
    Thank you, @Khaled Hosny
    – Catoblepa
    Commented Jul 12, 2019 at 2:19
1

Not all Unicode font families feature U+1E17; and, as you've discovered, even some fonts that do say they feature this glyph don't get it quite right.

If you can make do with EB Garamond -- another Garalde -- you should get the correctly rendered glyph in both upright and italic.

enter image description here

\documentclass{article}
\usepackage{fontspec}
\setmainfont{EB Garamond}%{TeX Gyre Pagella}
\begin{document}
\char"1E17th 
\textit{\char"1E17 th}
\end{document}
4
  • Thank you, @Mico, it would be a great fix if I had the freedom to use the font I wanted to.
    – Catoblepa
    Commented Jul 10, 2019 at 18:52
  • I have no problem with your original sample file using TeX Gyre Pagella. This is with a fully updated TeX Live 2019 installed via the MacTeX installer package. However, using Font Names will only work properly of the fonts can be found with Font Book so you may have to copy or create a symbolic link to the opentype fonts in your TeX Distribution. Commented Jul 10, 2019 at 19:58
  • 1
    @HerbSchulz - Did you maybe mean to post your comment below the OP's query?
    – Mico
    Commented Jul 11, 2019 at 2:16
  • 2
    @Mico : probably. Commented Jul 11, 2019 at 14:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .