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

PL4 drops too much in \DeclareFontShape #293

Closed
FrankMittelbach opened this issue Feb 27, 2020 · 1 comment
Closed

PL4 drops too much in \DeclareFontShape #293

FrankMittelbach opened this issue Feb 27, 2020 · 1 comment

Comments

@FrankMittelbach
Copy link
Member

FrankMittelbach commented Feb 27, 2020

Brief outline of the bug

PL4 was introduced to correct \DeclareFontShape declarations that incorrectly used something like mc when it should be c, according to the NFSS rules. Unfortunately the approach to drop a surplus "m" from the series unconditionally was a bit too overambitious because some .fd files (in particular those made with autoinst) first set up font shapes using long font names in the series, e.g. regular or semibold and then map the NFSS names onto the long names, eg.

\DeclareFontShape{OT1}{EBGaramond-OsF}{semibold}{n}{
      <-> \EBGaramond@@scale EBGaramond-SemiBold-osf-ot1
}{}
\DeclareFontShape{OT1}{EBGaramond-OsF}{sb}{n}{
       <-> ssub * EBGaramond-OsF/semibold/n
}{} 

Now when dropping one m from the series that results in the first one being equivalent to semibold and so the second misses its mark.

Minimal example showing the bug

\RequirePackage{latexbug}       % <--should be always the first line (see CONTRIBUTING)!
 \documentclass{article}

\begin{document}

\fontfamily{EBGaramond-OsF}\fontseries{semibold}\selectfont Test

\fontseries{sb}\selectfont Test

\end{document}

Log file

PL4-issue2.log

@FrankMittelbach FrankMittelbach self-assigned this Feb 27, 2020
@FrankMittelbach FrankMittelbach added this to Pool (unscheduled issues) in upcoming LaTeX2e releases via automation Feb 27, 2020
@FrankMittelbach FrankMittelbach added this to the hotfix milestone Feb 27, 2020
@FrankMittelbach
Copy link
Member Author

gone to CTAN as PL5

upcoming LaTeX2e releases automation moved this from Pool (unscheduled issues) to Done Feb 28, 2020
aminophen added a commit to texjporg/platex that referenced this issue Feb 28, 2020
FrankMittelbach added a commit that referenced this issue May 19, 2020
(including a fix to the code for #293)
wtsnjp added a commit to wtsnjp/platex-utf8-mirror that referenced this issue Mar 14, 2021
wtsnjp added a commit to wtsnjp/platex-utf8-mirror that referenced this issue Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant