Skip to content

Italics leak with onchar=fonts and CJK #414

@dcpurton

Description

@dcpurton

I came across a weird issue when trying to answer https://tex.stackexchange.com/q/761269/87678

In the following example, English is in italics unless I specify both the CJK italic font and a FakeSlant.

% TeX program = lualatex
\documentclass{article}
\usepackage{babel}
\babelprovide[import, main]{chinese-simplified}
\babelprovide[import, onchar=ids fonts]{english}
\babelfont[english]{rm}{Latin Modern Roman}
\babelfont[chinese-simplified]{rm}[
    %ItalicFont = {AR PL SungtiL GB},
    %ItalicFeatures = {FakeSlant=0}
  ]{AR PL SungtiL GB}
\begin{document}
English \emph{中文}
\end{document}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions