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
Problems with \textasciigrave in textcomp context #905
Comments
Unfortunately there are nearly as many TS1-subencodings around as there are fonts available for TeX. Thus textcomp (and nowadays the kernel) has divided them into 9 subsets with decreasing number of glyphs supported. However, some fonts do not fit into any these categories and in that case textcomp errs on the side of caution and pretends that a font is only supporting the subset which is fully available.
You can define the right default for zlmtt and you can pretend that ppl is better than it is, but then you get missing glyphs (or rather square blobs of ink probably) for other characters
The relevant textcomp commands are documented in None of this is really a bug in LaTeX font handling but a rather unfortunate mess in the way TS1 came about and how it is supported by different fonts. So I'm closing this. To find out which font family has which subencoding use |
Thanks @FrankMittelbach for your detailed informative answer and sorry for (almost) duplicate (the |
I will gently ping the maintainer of zlmtt about this. |
In general, I think font packages should set the TS1 subencoding that they support. The fact that the LaTeX kernel has a core set already defined doesn't mean it makes sense for the kernel to try and define that for each and every font. However, looking the code over I will reopen this pr because, |
ok, so we both forgot that you came across this font issue before and I gave a lenthy answer back then why it is as it is (let's hope you and I remember next time and you aren't opening up another pr for another font. In general font issues are not latex bugs even if it is true that this may come up with people using more fonts and upquote is getting at the TS1 glyph, but as I said before that part is not somehting LaTeX can fix, because you can't mechanically test if the glyph (even if there is one) is actually the right one. As I said, I keep this pr open to make |
For the record, I encountered again this problem with |
Brief outline of the bug
There are some things I do not understand with handling of
\textasciigrave
. It seems the glyph at slot 96 is there in the TS1-encoded fonts nevertheless LaTeX complains and falls back tocmr
.This was encountered in a third-party document whose font config I indicate commented out.
I report two cases: with psnfss palation (from mathpazo) and with the
zlmtt
from eponymous package which provides access in particular to "light" variant of Latin Modern typewriter.Minimal example showing the bug
Log file (required) and possibly PDF file
(commented) extract:
full log
testtextasciigrave.log
EDIT: this may be a duplicate of #478
It seems once a year I raise the same issue (because I am hit again by it... when looking at LaTeX aspects in some other people projects).
The text was updated successfully, but these errors were encountered: