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
EC fonts silently remap italic to slanted #172
Comments
I'm not sure this can be classified as a bug. In general, there is no italic shape for sans serif fonts, but slanted. In \EC@family{T1}{cmss}{m}{sl}{ecsi}
\EC@family{T1}{cmss}{m}{it}{ecsi} so both \DeclareFontShape{OT1}{cmss}{m}{it}
{<->sub*cmss/m/sl}{} which I consider suboptimal. The creators of European Modern decided for |
Not quite sure why you consider the Some warning about substitution can be helpful and while it is true that sans fonts usually only offer an oblique shape this is not universally true, there are a few that have real italics. However, if you consider that Probably for the same reason most newer sans fonts (e.g., all that have been provided via autoinst) use So all in all I think a change would not really be helpful or perhaps if changed than following the approach that autoinst is using even if that is technically wrong. |
CMSS fonts in OT1 will now silently (log info only) substitute |
There is zero advantage from just logging, because most editors parse the log file, so users will still be bothered by this warning. |
... and all fonts other than CMSS in T1 show the substituation in the log but not on the terminal usually. so that is the normal behavior T1cmss is the odd one here, but making that produce a warning after 20 years without isn't going to happen. Sorry, if this is not getting your approval, but we aren't going to fully drop the substitution info. By the way, there is a difference: it doesn't say Warning it say Info if it only goes in the log. |
Ah, I see. If the level is Info, it won't be shown in the quick-fix log of most editors. |
Brief outline of the bug
Typesetting the minial example below produces a missing font warning in the log as expected:
However commenting in the
\usepackage[T1]{fontenc}
line makes this warning disappear, even though the EC fonts do not provide an italic version of Computer Modern. Instead, the italic alphabet is simply remapped to slanted:latex2e/base/cmfonts.fdd
Lines 494 to 495 in 06814a3
While this has no functional impact, I believe that this is “false advertising”. Remapping to slanted should still take place but also a warning should be printed to emphasize that there is actually no italic variant of
cmss
in T1 encoding.Minimal example showing the bug
Log file (required) and possibly PDF file
test.log
The text was updated successfully, but these errors were encountered: