1

The following MWE doesn’t show a small capital of Ē (http://graphemica.com/Ē)enter image description here

Is there no such letter with the font libertinus or how can I make it happen with LuaLaTeX?

\documentclass{scrbook}
\usepackage{fontspec}
\setsansfont[%
  Numbers     = {Monospaced, OldStyle},
  Scale       = 0.95,
]{Libertinus Sans}
\setmainfont[%
  Numbers     = {Monospaced, OldStyle},
  Scale       = 0.95,
]{Libertinus Serif}

\begin{document}
ēĒasdfjklö\textsc{asdfēĒjklö}asdfjklöēĒ

\sffamily
ēĒasdfjklö\textsc{asdfēĒjklö}asdfjklöēĒ
\end{document}

The workaround with

\usepackage{stackengine} \newcommand\fit[3][.3ex]{\stackengine{#1}{#3}{#2}{O}{c}{F}{T}{S}} \newcommand\macron[1]{\fit{\kern-.2ex\_}{#1}} \newcommand\umlaut[1]{\fit{\kern-.05ex.\kern-.15ex.}{#1}}

works semi-well, since the bar is too long then. enter image description here

lukascbossert
  • 3,015
  • 1
  • 16
  • 37
  • Does \textsc{\=e} work? – Steven B. Segletes Sep 14 '17 at 10:20
  • nope. same result as putting in the character directly. – lukascbossert Sep 14 '17 at 10:22
  • Then maybe this question could help, on how to fudge accents for fonts that don't have them: https://tex.stackexchange.com/questions/390388/looking-for-a-package-method-that-can-make-best-guess-heuristic-accents-onto – Steven B. Segletes Sep 14 '17 at 10:23
  • Apparently, the font has no small caps variant for the “e with macron”. – egreg Sep 14 '17 at 10:24
  • @StevenB.Segletes see my updated question. – lukascbossert Sep 14 '17 at 10:28
  • How about \newcommand\scmacron[1]{\fit[.2ex]{\tiny\_}{#1}}? Here, I chose \tiny, but you could pick the best size. – Steven B. Segletes Sep 14 '17 at 10:31
  • There is a combining macron (U+0304) in the font and e.sc without a unicode slot. So entering \textsc{ē} (regular e and then U+0304 however your system allows you to input this) should work. You might want to kern it a tiny bit (eg. \textsc{e\kern-.03em̄}and/or to define a shorthand for it. – Florian Sep 14 '17 at 10:48
  • If you cannot/don't want to input the chars directly, you could adapt https://tex.stackexchange.com/a/120762/6819 and call the glyphs by name and/or slot. XeLaTeX comes with the \char{}-command built-in. – Florian Sep 14 '17 at 10:54
  • 1
    I just see that \char obviously is available in LuaLaTeX for Unicode slots, so \textsc{e\kern-.03em\char"0304} should work just fine – Florian Sep 14 '17 at 11:15
  • @Florian your solution is easy to apply and works fine! I take it. – lukascbossert Sep 14 '17 at 11:43

0 Answers0