2

Consider the following example set in Warnock Pro with lualatex:

\documentclass{book}
\usepackage{polyglossia}
\setmainlanguage{russian}
\setmainfont{Warnock Pro}
\pagestyle{empty}
\begin{document}
lualatex:

\addfontfeature{LetterSpace=30}
активный словарь русского языка

АКТИВНЫЙ СЛОВАРЬ РУССКОГО ЯЗЫКА
\end{document}

Capitals are not spaced properly (see the screenshot). Without \setmainlanguage{russian} or when typeset with xelatex, they are. Is it a problem of the font itself or some bug?

with lualatex

Update: [Renderer=Node] solves the problem, kudos to Javier Bezos

6
  • Where does not get that font? It is not in TL23 it seems
    – daleif
    Commented Dec 14, 2023 at 13:23
  • I've got it some time ago in a bundle with other Adobe fonts, it is not free, AFAIK Commented Dec 14, 2023 at 13:27
  • 3
    I’ve tested it with with babel and it worked as expected. So the problem is the renderer — by default Node with babel but Harfbuzz with polyglossia. If you are using LGR scripts, Node is usually a better option, so use \setmainfont[Renderer=Node]{Warnock Pro}. Commented Dec 14, 2023 at 16:20
  • Oops! I meant LGC (Latin-Greek-Cyrillic). Commented Dec 14, 2023 at 16:39
  • 3
    @VadimRadionov Very likely because now it’s correctly hyphenated. Sadly, there is a bug in the Harfbuzz renderer and (depending on the font) many hyphenation points are dropped (and this is the very reason babel sticks to the default renderer, ie, Node). For further info see github.com/latex3/luaotfload/wiki/Comparing-the-modes. Commented Dec 15, 2023 at 11:22

1 Answer 1

0

Switching to the Node renderer suggested by @JavierBezos solves this issue (and probably some others):

\setmainfont[Renderer=Node]{Warnock Pro}

You must log in to answer this question.

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