I’m trying to recreate the following image from John Hudson’s (principal designer of the Brill typeface) presentation slides:
Source: The Brill Types, p. 22.
The typeface is free for non-commercial use, please see the official Brill website. I got stuck in the image on page 21.
Edit after the comments under Thérèse’s answer. I realized that this was an engine problem. In the following simplified example (containing only the first 4 letters), you may spot the surprising results from both engines.
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Brill}
\ExplSyntaxOn
\NewDocumentCommand \dynamicdiacritics { }
{
Results ~ from ~
\sys_if_engine_luatex:T { LuaLaTeX: ~ }
\sys_if_engine_xetex:T { XeLaTeX: ~ }
d \char"030C \char"0304 \char"0323 \char"0326
y \char"030D \char"0311 \char"0310 \char"0302 \char"0301 \char"0353 \char"0347
n \char"0306 \char"0308 \char"1DD8 \char"0304 \char"0307 \char"032D \char"0332 \char"032B \char"0323
a \char"0363 \char"0306 \char"0309 \char"0324 \char"0330 \char"032A
}
\ExplSyntaxOff
\begin{document}
\dynamicdiacritics
\end{document}
According to the User Guide of “The Brill” (thanks, Thérèse!), one puts diacritics above before diacritics below. LuaTeX does the stacking gracefully. For XeTeX, the diacritics above “d” is too low, and there is a surprising horizontal shift for the diacritics around “n”. However, both engines have slight problems with vertical kerns.
I have added the engines’ tag to better reflect this question.
Original attempt:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Brill}
\ExplSyntaxOn
\NewDocumentCommand \dynamicdiacritics { }
{
d \char"0323 \char"030C
y \char"030D \char"0311
n \char"0306 \char"032D
a \char"0324 \char"0330
m \char"0310 \char"0318
i \char"0304 \char"1DCA
c \char"0319 \char"030B
~
d \char"0325 \char"0309
i \char"030E \char"1DC7
a \char"1DC8 \char"031E
c \char"0348 \char"0332
r \char"0346 \char"0332
i \char"0313 \char"036F
t \char"032B \char"0306
i \char"1DC5 \char"0307
c \char"0368 \char"0301
s \char"031C \char"1DCC
}
\ExplSyntaxOff
\begin{document}
\dynamicdiacritics
\end{document}
My failed attempt; wrong diacritics might have been used as well.
.pdf
you can download along with the font)?