[latex3-commits] [git/LaTeX3-latex3-latex2e] gh905: more documentation (e5ed6bea)

Frank Mittelbach frank.mittelbach at latex-project.org
Sun Aug 7 22:19:37 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : gh905
Link       : https://github.com/latex3/latex2e/commit/e5ed6bea7ce161515cd028b18491d19c90240124

>---------------------------------------------------------------

commit e5ed6bea7ce161515cd028b18491d19c90240124
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Sun Aug 7 22:19:37 2022 +0200

    more documentation


>---------------------------------------------------------------

e5ed6bea7ce161515cd028b18491d19c90240124
 base/doc/fntguide.tex | 32 +++++++++++++++++++++++++++-----
 base/doc/ltnews36.tex | 36 +++++++++++++++++++++++++++++++++++-
 2 files changed, 62 insertions(+), 6 deletions(-)

diff --git a/base/doc/fntguide.tex b/base/doc/fntguide.tex
index 2dfd1952..65467339 100644
--- a/base/doc/fntguide.tex
+++ b/base/doc/fntguide.tex
@@ -42,7 +42,7 @@
 
 \title{\LaTeXe{} font selection}
 
-\author{\copyright~Copyright 1995--2021, \LaTeX\ Project
+\author{\copyright~Copyright 1995--2022, \LaTeX\ Project
   Team.\thanks{Thanks to Arash Esbati for documenting the
     newer NFSS features of 2020}\\
   All rights reserved.%
@@ -52,7 +52,7 @@
    \texttt{fntguide.tex} for full details.}%
 }
 
-\date{December 2021}
+\date{August 2022}
 
 \begin{document}
 
@@ -1436,6 +1436,20 @@ Example:
    \DeclareFontEncoding{OT1}{}{}
 \end{verbatim}
 
+\NEWfeature{2021/06/01}
+Fonts in encoding \texttt{TS1} are usually not implementing the full encoding but only a subset.
+This subset should be declared  with a |\DeclareEncodingSubset|
+declaration:
+
+\begin{decl}
+  |\DeclareEncodingSubset| \arg{encoding}
+                           \arg{font family}
+                           \arg{subset number}
+\end{decl}
+This should even be done if the font is implementing the full
+\texttt{TS1} encoding; see page~\pageref{page:declareencodingsubset} for
+further details.
+
 Some author commands need to change their definition depending on which
 encoding is currently in use.  For example, in the |OT1| encoding, the
 letter `\AE' is in slot |"1D|, whereas in the |T1| encoding it is in
@@ -2053,7 +2067,7 @@ glyphs from the math fonts instead of the current text font (this means
 they always keep the same shape and do not nicely blend in with the text
 font).
 
-\newpage
+%\newpage
 
 The following tables show the macros available.  The next commands are
 `constructed' accents and are built via \TeX{} macros:
@@ -2239,7 +2253,8 @@ question arises: ``Which glyphs of the |TS1| encoding are implemented by
 which font?''
 
 \NEWfeature{2021/06/01}
-Fonts can be ordered in sub-encodings with the |\DeclareEncodingSubset|
+Fonts\label{page:declareencodingsubset}
+can be ordered in sub-encodings with the |\DeclareEncodingSubset|
 macro:
 \begin{decl}
   |\DeclareEncodingSubset| \arg{encoding}
@@ -2582,7 +2597,14 @@ is the same as writing
 If only some are needed then one can define them individually but in
 many cases all four are wanted, hence the shortcut.
 
-
+Maintainers of font bundles that include \texttt{TS1} encoded font files
+should add an appropriate declaration into the corresponding
+\texttt{ts1}\textit{family}\texttt{.fd} file, because otherwise the
+default subencoding is assumed, which is probably disabling too many
+glyphs that are actually available in the font.\footnote{The \LaTeX{}
+  format contains declarations for many font families already, but this
+  is really the wrong place for the declarations. Thus for new fonts
+  they should be placed into the corresponding \texttt{.fd} file.}
 
 
 \section{If you need to know more \ldots}
diff --git a/base/doc/ltnews36.tex b/base/doc/ltnews36.tex
index 88f2b855..347cf974 100644
--- a/base/doc/ltnews36.tex
+++ b/base/doc/ltnews36.tex
@@ -145,6 +145,32 @@
 
 \emph{to be written}
 
+
+\subsection{Encoding subsets for \texttt{TS1} encoded fonts}
+
+The text companion encoding \texttt{TS1} is unfortunately not very
+faithfully supported in fonts that are not close cousins to the
+Computer Modern fonts. It was therefore necessary to provide the
+notion of \enquote{sub-encodings} on a per font basis. These
+sub-encodings are declared for a font family with the help of a
+\cs{DeclareEncodingSubset} declaration, see \cite{36:fntguide} for
+details.
+
+Maintainers of font bundles that include \texttt{TS1} encoded font
+files should add an appropriate declaration into the corresponding
+\texttt{ts1}\textit{family}\texttt{.fd} file, because otherwise the
+default subencoding is assumed, which is probably disabling too many
+glyphs that are actually available in the font.\footnote{The \LaTeX{}
+  format contains declarations for many font families already.  This
+  was done in 2020 to quickstart the use of the symbols in the kernel,
+  but it is really the wrong place for such declarations. Thus, for
+  new fonts the declarations should be placed into the corresponding
+  \texttt{.fd} files.}
+%
+\githubissue{905}
+
+
+
 \section{New or improved commands}
 
 
@@ -181,6 +207,10 @@ font instead.
 \githubissue{879}
 
 
+
+
+
+
 \section{Bug fixes}
 
 
@@ -233,7 +263,11 @@ is now properly guarded for.
 \bibitem{36:ltnews35} \LaTeX{} Project Team:
   \emph{\LaTeXe{} news 35}.\\
   \url{https://latex-project.org/news/latex2e-news/ltnews35.pdf}
-%
+
+\bibitem{36:fntguide} \LaTeX{} Project Team:
+  \emph{\LaTeXe{} font selection}.\\
+  \url{https://latex-project.org/help/documentation/}
+
 %\bibitem{36:ltfilehook-doc} Frank Mittelbach, Phelype Oleinik, \LaTeX{}~Project~Team:
 %  \emph{The \texttt{\upshape ltfilehook} documentation}.\\
 %  Run \texttt{texdoc} \texttt{ltfilehook-doc} to view.





More information about the latex3-commits mailing list.