-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
changing bold series default to bx for all meta families fails #366
Comments
Well I tend to consider this "as works as (imperfectly) designed". NFSS handles variant bold only for "meta families" but not for any additional font that you may call in your document. And doing Even setting So to make this work you need to change the "sf" meta family to "cmss" (after loading times it is phv) and also use \sffamily not a low-level call. |
Well the main question is, why does it work with |
That case works for a very simple reason (nothing to do with #306): if you make the default for \bfseries "bx" then calling Anyway, the 2010-10-01 format offers you a solution if you deal with fonts outside of the meta families:
that is you can test the bold status and do something based on the result. |
#306 deals with the question of what should happen if you change \bfdefault directly (old interface) and there everything is reset. When using \DeclareFontSeriesDefault then only the part specified is altered that is
only affects fonts that are not one of the meta families. Maybe that is wrong and it should do reset throughout, but the reason it is like this is that it is difficult to just set the default for anything outside the meta families and you don#t know what packages like times or ebgaramond or ... have done to the setup of the meta family. This is why all declararations only affect the part that hey deal with and not any other. |
Hm, ok so that is the misunderstanding. But how do you get "outside the meta families", so that |
Depends on what you mean by " So if you want to typeset in such a font but in a way that the command called obeys the bold status, you need to use |
In the following example the test font has only a bx series, while times substitute b for bx. And this leads to the problem that the test font is not bold when it is selected after the series has been set.
In the original problem the test font isn't cmss, but a singalese font.
I tried to to set the default font series to bx, but this fails, only the version with the optional argument works as expected:
(Compiled with pdflatex-dev.)
test-font.log
The text was updated successfully, but these errors were encountered: