diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex-dev/base/tracefnt.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex-dev/base/tracefnt.sty | 50 |
1 files changed, 45 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex-dev/base/tracefnt.sty b/Master/texmf-dist/tex/latex-dev/base/tracefnt.sty index e8cc5e3d073..80c946dd4a5 100644 --- a/Master/texmf-dist/tex/latex-dev/base/tracefnt.sty +++ b/Master/texmf-dist/tex/latex-dev/base/tracefnt.sty @@ -13,7 +13,7 @@ %% (but please observe conditions on bug reports sent to that address!) %% %% -%% Copyright (C) 1993-2020 +%% Copyright (C) 1993-2021 %% The LaTeX3 Project and any individual authors listed elsewhere %% in this file. %% @@ -44,9 +44,9 @@ %%% From File: ltfsstrc.dtx %% Copyright (C) 1989-97 by Frank Mittelbach and Rainer Sch\"opf. %% Copyright (C) 1994-97 by LaTeX3 project. All rights reserved. -\NeedsTeXFormat{LaTeX2e}[1995/05/16] +\NeedsTeXFormat{LaTeX2e}[2021/05/01] \ProvidesPackage{tracefnt} - [2019/10/11 v3.0l Standard LaTeX package (font tracing)] + [2020/12/22 v3.0n Standard LaTeX package (font tracing)] \newcount\tracingfonts \tracingfonts=0 \DeclareOption{errorshow}{% @@ -103,19 +103,59 @@ \csname\curr@fontshape\endcsname \relax } + \DeclareRobustCommand\selectfont {% \ifx\f@linespread\baselinestretch \else \set@fontsize\baselinestretch\f@size\f@baselineskip \fi + \ifx\delayed@f@adjustment\@empty + \else + \let\f@shape@saved\f@shape + \let\f@series@saved\f@series + \delayed@f@adjustment + \maybe@load@fontshape + \ifcsname \f@encoding/\f@family/\f@series/\f@shape \endcsname + \else + \let\f@shape\f@shape@saved + \let\f@series\f@series@saved + \let\delayed@merge@font@shape\merge@font@shape + \let\delayed@merge@font@series\merge@font@series + \delayed@f@adjustment + \let\delayed@merge@font@shape\merge@font@shape@without@substitution + \let\delayed@merge@font@series\merge@font@series@without@substitution + \fi + \let\delayed@f@adjustment\@empty + \fi \xdef\font@name{% \csname\curr@fontshape/\f@size\endcsname}% \pickup@font \font@name - \ifnum \tracingfonts>\tw@ - \@font@info{Switching to \font@name}\fi + \UseHook{selectfont}% \size@update \enc@update } +\AddToHook{selectfont} + {\ifnum \tracingfonts>\tw@ + \@font@info{Switching to \font@name}\fi} +\IncludeInRelease{2021/05/01}% + {\selectfont}{Add hook to \selectfont}% +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}% + {\selectfont}{Add hook to \selectfont}% + +\DeclareRobustCommand\selectfont + {% + \ifx\f@linespread\baselinestretch \else + \set@fontsize\baselinestretch\f@size\f@baselineskip \fi + \xdef\font@name{% + \csname\curr@fontshape/\f@size\endcsname}% + \pickup@font + \font@name + \size@update + \enc@update + } + +\EndIncludeInRelease \def\set@fontsize#1#2#3{% \@defaultunits\@tempdimb#2pt\relax\@nnil \edef\f@size{\strip@pt\@tempdimb}% |