Skip to content

Babel defined fonts do not work with realscripts package #411

Description

@dcpurton

For fonts defined using \babelfont, the realscripts package has no effect unless the the Harfbuzz renderer is selected.

This does not happen for fonts defined directly using fontspec.

I'm not sure whether the fault lies with babel or realscripts as using \addfontfeatures{VerticalPosition=Superior} works as expected.

I might be wrong, but I feel like this used to work with babel.

% TeX Program = lualatex

\documentclass{article}

\usepackage[english]{babel}
\babelfont{rm}{Noto Serif}
\babelfont{sf}[Renderer=Harfbuzz]{Noto Sans}
\usepackage{realscripts}

\newfontfamily\nonbabelnotoserif{Noto Serif}[Renderer=Node]

\begin{document}

\textsuperscript{1234567890} ¹²³⁴⁵⁶⁷⁸⁹⁰ {\addfontfeatures{VerticalPosition=Superior}1234567890}

\sffamily

\textsuperscript{1234567890} ¹²³⁴⁵⁶⁷⁸⁹⁰

\nonbabelnotoserif

\textsuperscript{1234567890} ¹²³⁴⁵⁶⁷⁸⁹⁰

\end{document}
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions