--- Begin Message ---
Package: texlive-latex-base
Version: 2020.20210202-3
Severity: important
X-Debbugs-Cc: tg@mirbsd.de
MWE:
-----BEGIN cutting here may damage your screen surface-----
\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
\makeatletter%
\fontfamily{Roboto-TLF}\fontseries{c}\fontsize{12pt}{12pt}\selectfont%
This is \f@series{} and should be c.
\fontfamily{Roboto-TLF}\fontseries{b}\fontsize{40pt}{40pt}\selectfont%
This is \f@series{} and should be b.
\fontfamily{Roboto-TLF}\fontseries{m}\fontsize{14pt}{14pt}\selectfont%
This is \f@series{} and should be m.
\end{document}
-----END cutting here may damage your screen surface-----
Running “pdflatex fontseries-bug.tex” and “mupdf fontseries-bug.pdf”
displays:
This is c and should be c.
This is bc and should be b.
This is m and should be m.
For some reason, \fontseries seems to be SOMETIMES cumulative.
This is directly against any documentation I can find online‽
-- Package-specific info:
IMPORTANT INFORMATION: We will only consider bug reports concerning
the packaging of TeX Live as relevant. If you have problems with
combination of packages in a LaTeX document, please consult your
local TeX User Group, the comp.text.tex user group, the author of
the original .sty file, or any other help resource.
In particular, bugs that are related to up-upstream, i.e., neither
Debian nor TeX Live (upstream), but the original package authors,
will be closed immediately.
*** The Debian TeX Team is *not* a LaTeX Help Desk ***
If you report an error when running one of the TeX-related binaries
(latex, pdftex, metafont,...), or if the bug is related to bad or wrong
output, please include a MINIMAL example input file that produces the
error in your report.
Please run your example with
(pdf)latex -recorder ...
(or any other program that supports -recorder) and send us the generated
file with the extension .fls, it lists all the files loaded during
the run and can easily explain problems induced by outdated files in
your home directory.
Don't forget to also include minimal examples of other files that are
needed, e.g. bibtex databases. Often it also helps
to include the logfile. Please, never send included pictures!
If your example file isn't short or produces more than one page of
output (except when multiple pages are needed to show the problem),
you can probably minimize it further. Instructions on how to do that
can be found at
http://www.minimalbeispiel.de/mini-en.html (english)
or
http://www.minimalbeispiel.de/mini.html (german)
##################################
minimal input file
##################################
other files
######################################
List of ls-R files
-rw-rw-r-- 1 root staff 80 Jan 15 2016 /usr/local/share/texmf/ls-R
-rw-r--r-- 1 root root 2384 Nov 2 23:40 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root root 29 Feb 12 2021 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 31 Feb 17 2021 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
lrwxrwxrwx 1 root root 31 Feb 17 2021 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
######################################
Config files
-rw-r--r-- 1 root root 475 Feb 13 2021 /etc/texmf/web2c/texmf.cnf
lrwxrwxrwx 1 root root 33 Feb 17 2021 /usr/share/texmf/web2c/fmtutil.cnf -> /var/lib/texmf/fmtutil.cnf-DEBIAN
lrwxrwxrwx 1 root root 32 Feb 17 2021 /usr/share/texmf/web2c/updmap.cfg -> /var/lib/texmf/updmap.cfg-DEBIAN
-rw-r--r-- 1 root root 5116 Nov 2 23:38 /var/lib/texmf/tex/generic/config/language.dat
######################################
Files in /etc/texmf/web2c/
total 8
-rw-r--r-- 1 root root 283 Jun 15 2013 mktex.cnf
-rw-r--r-- 1 root root 475 Feb 13 2021 texmf.cnf
######################################
md5sums of texmf.d
ca40c66f144b4bafc3e59a2dd32ecb9c /etc/texmf/texmf.d/00debian.cnf
-- System Information:
Debian Release: 11.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'oldstable-updates'), (500, 'oldoldstable'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-8-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)
Versions of packages texlive-latex-base depends on:
ii fonts-lmodern 2.004.5-6.1
ii tex-common 6.16
ii texlive-base 2020.20210202-3
ii texlive-binaries 2020.20200327.54578-7
texlive-latex-base recommends no packages.
Versions of packages texlive-latex-base suggests:
ii texlive-latex-base-doc 2020.20210202-3
Versions of packages tex-common depends on:
ii dpkg 1.20.9
ii ucf 3.0043
Versions of packages tex-common suggests:
ii debhelper 13.3.4
Versions of packages texlive-latex-base is related to:
ii tex-common 6.16
ii texlive-binaries 2020.20200327.54578-7
-- debconf information:
tex-common/check_texmf_wrong:
tex-common/check_texmf_missing:
--- End Message ---
--- Begin Message ---
Hi Thorsten,
> \fontfamily{Roboto-TLF}\fontseries{c}\fontsize{12pt}{12pt}\selectfont%
> This is \f@series{} and should be c.
>
> \fontfamily{Roboto-TLF}\fontseries{b}\fontsize{40pt}{40pt}\selectfont%
> This is \f@series{} and should be b.
Fontseries combines weight and width, and thus theoretically any
combination of weight (ul,el,l,sl,m,sb,b,eb,ub) and width
(uc,ec,c,sc,sx,x,ex,ux) are possible.
So c = width, b = weight, can be combined.
When you then switch to m = width this is reset.
See
https://tug.org/texinfohtml/latex2e.html#Low_002dlevel-font-commands
or
https://tex.stackexchange.com/questions/68745/possible-values-for-fontseries-and-fontshape
Closing the bug
All the best
Norbert
--
PREINING Norbert https://www.preining.info
Fujitsu Research + IFMGA Guide + TU Wien + TeX Live
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
--- End Message ---