-
Notifications
You must be signed in to change notification settings - Fork 34
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
Problem with default bx
series: Name and font substitution
#360
Comments
Take \DeclareFontFamily{T1}{ntxtlf}{\ntx@spacing}
\DeclareFontShape{T1}{ntxtlf}{b}{sc}{<-> \ntx@scaled ntx-Bold-tlf-sc\ntx@lsfx-t1}{}
\DeclareFontShape{T1}{ntxtlf}{b}{n}{<-> \ntx@scaled ntx-Bold-tlf-t1}{}
...
\DeclareFontShape{T1}{ntxtlf}{bx}{sc}{<->ssub * ntxtlf/b/sc}{}
\DeclareFontShape{T1}{ntxtlf}{bx}{n}{<->ssub * ntxtlf/b/n}{}
... i.e., |
A different point of view, as mentioned in your comment here, is to move the following code block: \DeclareSymbolFont{operators}\g_fontspec_encoding_tl\g_@@_mathrm_tl\mddefault\updefault
\SetSymbolFont{operators}{normal}\g_fontspec_encoding_tl\g_@@_mathrm_tl\mddefault\updefault
... to follow \bool_if:NT \g_@@_math_bool
{
\@@_info:n {setup-math}
\fontspec_setup_maths:
}
% Add block here: Thus, the BTW, in the true branch of \SetMathAlphabet\mathrm{bold}\g_fontspec_encoding_tl\g_@@_mathrm_tl\bfdefault\updefault % This line may be redundant
\SetMathAlphabet\mathbf{bold}\g_fontspec_encoding_tl\g_@@_mathrm_tl\bfdefault\updefault and in the false branch, the |
bx
series: Name and substitutionbx
series: Name and font substitution
It appears that only a few number of fonts (e.g., Computer Modern) provides the
An excerpt from the documentation: |
@RuixiZhang42 — yes, that's right, the new default in LaTeX2e will be |
Description
The
mtpro2
math package (and also thenewtxmath
math package, etc.) assumes that text font has ab
series. Most traditional text font packages either provide theb
series or make sure that font substitutions fromb
tobx
and vice versa happen. This is not the case withfontspec
.Check/indicate
Minimal example demonstrating the issue
Further details
One of the default font series set by
fontspec
isbx
.bx
is supposed to be “bold extended”, so the naming here is arguably wrong.fontspec
make sure that font substitution betweenb
andbx
happen?The text was updated successfully, but these errors were encountered: