Skip to content

Commit

Permalink
Merge pull request #896 from latex3/gh879
Browse files Browse the repository at this point in the history
adjust fd file for issue #879
  • Loading branch information
davidcarlisle committed Jul 10, 2022
2 parents 480b542 + 42e40d3 commit 8baf999
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 17 deletions.
10 changes: 10 additions & 0 deletions base/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================

2022-07-10 David Carlisle <David.Carlisle@latex-project.org>

* cmfonts.fdd: avoid EC sans serif fonts at small design sizes.
The medium weight is bolder and wider than the bold extended.
Scale the 8pt font for sizes 5,6,7. gh/879

2022-06-22 David Carlisle <David.Carlisle@latex-project.org>

Expand All @@ -20,6 +25,11 @@ are not part of the distribution.
* cmfonts.fdd
Add font definitions for slanted small caps (gh/782)

2022-06-10 Ulrike Fischer <Ulrike.Fischer@latex-project.org>

* cmfonts.fdd
Add font definitions for slanted small caps (gh/782)

================================================================================
All changes above are only part of the development branch for the next release.
================================================================================
Expand Down
35 changes: 25 additions & 10 deletions base/cmfonts.fdd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
% Copyright 1993-2019
% Copyright 1993-2022
% The LaTeX Project and any individual authors listed elsewhere
% in this file.
%
Expand Down Expand Up @@ -67,7 +67,7 @@
%<*driver, >
\ProvidesFile{cmfonts.drv}
%</driver, >
[2022/06/10 v2.5k Standard LaTeX font definitions]
[2022/07/10 v2.5l Standard LaTeX font definitions]
%
%<*driver>
\documentclass{ltxdoc}
Expand Down Expand Up @@ -261,13 +261,13 @@
% (thanks to Christian Cornelssen)}
% \begin{macrocode}
%<*new|ec>
%<*!tt>
%<*!tt&!T1cmss>
\providecommand{\EC@family}[5]{%
\DeclareFontShape{#1}{#2}{#3}{#4}%
{<5><6><7><8><9><10><10.95><12><14.4>%
%<ec> <17.28><20.74><24.88><29.86><35.83>genb*#5}{}}
%<!ec> <17.28><20.74><24.88>genb*#5}{}}
%</!tt>
%</!tt&!T1cmss>
% \end{macrocode}
% For monospaced fonts, the normal interpolation breaks down below
% 8pt, so scale the 8pt fonts instead.
Expand All @@ -282,6 +282,21 @@
%<ec> <35.83>genb*#5}{}}
%<!ec> <9><10><10.95><12><14.4><17.28><20.74><24.88>genb*#5}{}}
%</tt>
% \end{macrocode}
% \changes{v2.5l}{2022/07/10}%
% {Avoid ec ss fonts at design size 5, 6, 7. gh/879}
% For ec cmss fonts avoid the small design sizes which have incorrect
% definitions.
% (Medium weight bolder and wider than bold extended for 5pt and 6pt,
% 7pt does not have expected contrast. Scale 8pt, matching |fix-cm|).
% gh/879
% \begin{macrocode}
%<*T1cmss>
\providecommand{\EC@ssfamily}[5]{%
\DeclareFontShape{#1}{#2}{#3}{#4}%
{<5><6><7><8>#50800%
<9><10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83>genb*#5}{}}
%</T1cmss>
%</new|ec>
% \end{macrocode}
%
Expand Down Expand Up @@ -494,12 +509,12 @@
% {EC fonts}
% \begin{macrocode}
%<*ec>
\EC@family{T1}{cmss}{m}{n}{ecss}
\EC@family{T1}{cmss}{m}{sl}{ecsi}
\EC@family{T1}{cmss}{m}{it}{ecsi}
\EC@family{T1}{cmss}{bx}{n}{ecsx}
\EC@family{T1}{cmss}{bx}{it}{ecso}
\EC@family{T1}{cmss}{bx}{sl}{ecso}
\EC@ssfamily{T1}{cmss}{m}{n}{ecss}
\EC@ssfamily{T1}{cmss}{m}{sl}{ecsi}
\EC@ssfamily{T1}{cmss}{m}{it}{ecsi}
\EC@ssfamily{T1}{cmss}{bx}{n}{ecsx}
\EC@ssfamily{T1}{cmss}{bx}{it}{ecso}
\EC@ssfamily{T1}{cmss}{bx}{sl}{ecso}
%</ec>
% \end{macrocode}
% The next substitution is very questionable.
Expand Down
10 changes: 10 additions & 0 deletions base/doc/ltnews36.tex
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,16 @@ \subsection{Support for slanted small caps in the EC-fonts }
%
\githubissue{782}


\subsection{EC sans serif at small sizes}
The EC (T1 encoded Computer Modern) sans serif fonts have errors at
small sizes. (The medium weight is bolder and wider than the bold
extended) The default \texttt{.fd} file has been adjusted to use a
scaled 8pt font.
%
\githubissue{879}


\section{Bug fixes}

\section{Changes to packages in the \pkg{amsmath} category}
Expand Down
38 changes: 38 additions & 0 deletions base/testfiles/github-0879.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

\documentclass{article}

\input{test2e}

% testfor gh/879; bold extended should be wider than medium

\def\TEST#1#2#3{%
\sbox0{\fontsize{#3}{#3}\usefont{T1}{cmss}{m}{#1}%
One TWO three FOUR five}%
\sbox2{\fontsize{#3}{#3}\usefont{T1}{cmss}{#2}{#1}%
One TWO three FOUR five}%
%\par\usebox{0}: #1 m #3
%\par\usebox{2}: #1 #2 #3
\typeout{#1/#2/#3:\ifnum#3<10 \space\fi m\ifdim\wd0>\wd2 >\else<=\fi#2}}

\def\TTEST#1#2{%
\TEST{#1}{#2}{12}
\TEST{#1}{#2}{10}
\TEST{#1}{#2}{9}
\TEST{#1}{#2}{8}
\TEST{#1}{#2}{7}
\TEST{#1}{#2}{6}
\TEST{#1}{#2}{5}
}

\begin{document}

\START

\TTEST{n}{bx}
\TTEST{sl}{bx}
\TTEST{it}{bx}

\TTEST{n}{sbc}


\end{document}
32 changes: 32 additions & 0 deletions base/testfiles/github-0879.tlg
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
This is a generated file for the LaTeX2e validation system.
Don't change this file in any respect.
LaTeX Font Info: Trying to load font information for T1+cmss on input line ....
n/bx/12:m<=bx
n/bx/10:m<=bx
n/bx/9: m<=bx
n/bx/8: m<=bx
n/bx/7: m<=bx
n/bx/6: m<=bx
n/bx/5: m<=bx
sl/bx/12:m<=bx
sl/bx/10:m<=bx
sl/bx/9: m<=bx
sl/bx/8: m<=bx
sl/bx/7: m<=bx
sl/bx/6: m<=bx
sl/bx/5: m<=bx
it/bx/12:m<=bx
it/bx/10:m<=bx
it/bx/9: m<=bx
it/bx/8: m<=bx
it/bx/7: m<=bx
it/bx/6: m<=bx
it/bx/5: m<=bx
n/sbc/12:m>sbc
n/sbc/10:m>sbc
n/sbc/9: m>sbc
n/sbc/8: m>sbc
n/sbc/7: m>sbc
n/sbc/6: m>sbc
n/sbc/5: m>sbc
(github-0879.aux)
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ Package: l3ref-tmp ....-..-.. L3 Experimental cross-referencing
\g__pdf_backend_page_int=\count...
) (../pdfmanagement-firstaid.sty
Package: pdfmanagement-firstaid ....-..-.. v... LaTeX PDF management testphase bundle / firstaid-patches
! LaTeX3 Error: Inconsistent local/global assignment
For immediate help type H <return>.
...
l. ... }
This is a coding error.
Local assignment to a global variable
'\g__pdfmanagement_firstaid_fontspec_bool'.
(../output-patches-tmp-ltx.sty
Package: output-patches-tmp-ltx ....-..-.. v... Temporary patches of output commands
(../etoolbox.sty
Expand Down

0 comments on commit 8baf999

Please sign in to comment.