Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoFakeSlant does not work when specifying BoldFont #443

Open
yuishin-kikuchi opened this issue May 6, 2021 · 0 comments
Open

AutoFakeSlant does not work when specifying BoldFont #443

yuishin-kikuchi opened this issue May 6, 2021 · 0 comments

Comments

@yuishin-kikuchi
Copy link

Description

AutoFakeSlant does not work when specifying BoldFont.
Problem occurs with both xelatex/lualatex.

Check/indicate

  • [ chk ] Relevant for XeTeX
  • [ chk ] Relevant for LuaTeX
  • [ chk ] Issue tracker has been searched for similar issues?
  • [ chk ] Links to <tex.stackexchange.com> discussion if appropriate

Minimal example demonstrating the issue

\documentclass{article}
\usepackage[no-math]{fontspec}
\setmainfont{Roboto}[
  UprightFont=*-Regular,
  BoldFont=*-Bold,
  AutoFakeSlant=0.5,
] % I know roboto family has italic and bold italic version.
\begin{document}
{The quick brown fox}\par
{\bfseries The quick brown fox}\par
{\itshape The quick brown fox}\par
{\bfseries\itshape The quick brown fox}\par % why not slanted?
\end{document}

Further details

The code:

\setmainfont{Roboto}[
  UprightFont=*-Regular,
  BoldFont=*-Bold,
  AutoFakeSlant=0.5,
  BoldItalicFeatures={
    Font=*-Bold,
    FakeSlant=0.5,
  }
]

works fine.
But this is redundant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant