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

fontenc T1 with \tiny and \sffamily swaps bold <-> regular #879

Closed
simon-codes-something opened this issue Jun 26, 2022 · 3 comments
Closed

Comments

@simon-codes-something
Copy link

Brief outline of the bug

Loading fontenc with option T1 swaps bold and regular fonts when using \tiny and \sffamily.

Here is what i have tested so far:

Any of the following changes restore the proper boldness

  • using OT1 instead of T1
  • changing the fontsize (tested up to \Large)
  • removing \sffamily
  • loading a different font (tested with lmodern)

Adding \itshape seems to have no influence on the boldness.

Minimal example showing the bug

\RequirePackage{latexbug} 
\documentclass{article}

\usepackage[T1]{fontenc} %OT1: as expected, T1: bold and regular swapped when tiny

%\usepackage{lmodern} %problem is not present with lmodern
\begin{document}
	\tiny\sffamily should be regular
	
	\tiny\sffamily\bfseries should be bold
\end{document}

Log file (required) and possibly PDF file

minimal example.log
minimal example.pdf

@davidcarlisle
Copy link
Member

that is odd, although it seems to be a issue with the fonts rather than latex

this plain tex example access the fonts directly

\font\fxa=ecss1000 at 10pt

\font\fxb=ecsx1000 at 10pt

\font\fva=ecss0500 at 10pt

\font\fvb=ecsx0500 at 10pt

{\fxa one two three}

{\fxb one two three}


{\fva one two three}

{\fvb one two three}

\bye

producing

image

Showing the 10pt design size fonts having the expected correspondence but the 5pt design size regular font is much wider than the 5pt sx version.

@u-fischer
Copy link
Member

As a work around you could load \RequirePackage{fix-cm}, it doesn't use this small sizes which are, as David showed, buggy. With it I then get

image

@FrankMittelbach
Copy link
Member

The fonts are actually wrong and we will fix it by not using the smallest (wrong sizes) but instead scale down.

@FrankMittelbach FrankMittelbach added this to Pool (unscheduled issues) in upcoming LaTeX2e releases via automation Jul 8, 2022
@FrankMittelbach FrankMittelbach added this to the Release 2022 Fall milestone Jul 8, 2022
davidcarlisle added a commit that referenced this issue Jul 10, 2022
davidcarlisle added a commit that referenced this issue Jul 10, 2022
rebase from develop
davidcarlisle added a commit that referenced this issue Jul 10, 2022
adjust fd file for issue #879
@davidcarlisle davidcarlisle added the fixed in dev Fixed in development branch, not in stable release label Jul 10, 2022
@josephwright josephwright removed the fixed in dev Fixed in development branch, not in stable release label Oct 31, 2022
upcoming LaTeX2e releases automation moved this from Pool (unscheduled issues) to Done Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

5 participants