summaryrefslogtreecommitdiff
path: root/fonts/plex-otf/doc/plex-otf-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/plex-otf/doc/plex-otf-doc.tex')
-rw-r--r--fonts/plex-otf/doc/plex-otf-doc.tex213
1 files changed, 87 insertions, 126 deletions
diff --git a/fonts/plex-otf/doc/plex-otf-doc.tex b/fonts/plex-otf/doc/plex-otf-doc.tex
index 8ca77ba62c..21c6487efa 100644
--- a/fonts/plex-otf/doc/plex-otf-doc.tex
+++ b/fonts/plex-otf/doc/plex-otf-doc.tex
@@ -1,10 +1,11 @@
-%% $Id: plex-otf-doc.tex 755 2018-04-13 11:33:43Z herbert $
+%% $Id: plex-otf-doc.tex 760 2023-09-09 10:39:53Z herbert $
%
% Copying and distribution of this file, with or without modification,
% are permitted in any medium, without royalty.
\listfiles
-\documentclass[fontsize=11pt,paper=a4,twoside=on,DIV=13,abstract=on]{scrartcl}
+\PassOptionsToPackage{table}{xcolor}
+\documentclass[fontsize=11pt,paper=a4,twoside=on,abstract=on,usegeometry]{scrartcl}
%\usepackage[a4paper,twoside]{geometry}
\usepackage{unicode-math}
@@ -14,6 +15,7 @@
TT={Scale=MatchLowercase,FakeStretch=0.9},
DefaultFeatures={Ligatures=TeX}]{plex-otf}
\setmathfont{XITS Math}
+\usepackage{unicodefonttable}
\usepackage[english]{babel}
\usepackage[autostyle]{csquotes}
%\DeclareQuoteStyle{polish}{,,}{''}{«}{»}
@@ -24,51 +26,14 @@
\usepackage{metalogo} % for \XeTeX logo
\usepackage{booktabs} % for examples
\usepackage{xltabular} % for examples
-\usepackage{dtk-logos} % for Wikipedia W
-\usepackage{dtk-extern} % for examples
+
+\usepackage{geometry,multicol,hvlogos} % for Wikipedia W
+\usepackage{hvextern} % for examples
+\setkeys{hv}{moveToExampleDir,ExampleDir=Examples,
+showFilename,verbose}
+
\usepackage{listings}
\lstset{columns=fixed,basicstyle=\ttfamily\small}
-\usepackage[table]{xcolor}
-\usepackage{filecontents}
-
-\usepackage{luacode}
-\begin{luacode*}
-function print_glyphs(maxCols,maxChars) -- Anzahl Spalten und Zeichen
- local id = font.current() -- Font ID holen
- local fnt = font.getfont(id)
- local col = 1
- local maxU4 = 15*(16^3+16^2+16+1)
- a = {}
- for k, v in pairs(fnt.characters) do
- a [#a + 1] = k
- end
- table.sort(a)
- for i, k in ipairs(a) do
- if i >= maxChars then break end
- if col == 1 then
- if k > maxU4 then
- tex.sprint(string.format("U+%06x", k))
- else
- tex.sprint(string.format("U+%04x", k))
- end
- tex.sprint("&")
- end
- if (i) then
- tex.sprint(string.format([[\char%i]], k))
- else
- tex.sprint("~")
- end
- if col == maxCols then -- Zeile voll?
- tex.sprint([[\\\cline{2-]] .. maxCols+1 .. "} ") -- ja, also abschließen
- col = 1 -- und neu starten
- else
- tex.sprint("&") -- nein, also & ausgeben
- col = col + 1 -- Spalte inkrementieren
- end
- end
-end
-\end{luacode*}
-
\pagestyle{headings}
@@ -158,7 +123,7 @@ Sphinx of black quartz judge my vow.
-\title{Support for the {\fontsize{30pt}{32pt}\selectfont\IBM} Plex OpenType fonts}
+\title{Support for the IBM Plex OpenType fonts}
\author{Herbert Voß}
\begin{document}
\maketitle
@@ -173,7 +138,6 @@ IBM typography is international and modern to reflect our brand and our design p
\section{Introduction}
-
The package \texttt{plex-otf} supports all families with specific optional
arguments:
@@ -197,8 +161,7 @@ For this documentation
we use instead:
\begin{verbatim}
-\usepackage[usefilenames,% Important for xelatex
- RM={Scale=0.94},
+\usepackage[RM={Scale=0.94},
SS={Scale=0.94},
SScon={Scale=0.94},
TT={Scale=MatchLowercase,FakeStretch=0.9},
@@ -209,64 +172,6 @@ we use instead:
%\clearpage
-\section{The Glyphs}
-\subsection{Default Serif style}
-
-\begingroup
-\color{black!20}
-\begin{longtable}{>{\color{black!50}\ttfamily\footnotesize}r|
- *{10}{>{\color{black}}p{1.5em}|}}
-\cline{2-11}
-\endhead
-%\directlua{print_glyphs(10,1360)} \\ \cline{2-11}
-\directlua{print_glyphs(10,65463)} \\ \cline{2-11}
-\end{longtable}
-\endgroup
-
-
-\subsection{Default Sans style}
-
-
-\begingroup
-\color{black!20}\sffamily
-\begin{longtable}{>{\color{black!50}\ttfamily\footnotesize}r|
- *{10}{>{\color{black}}p{1.5em}|}}
-\cline{2-11}
-\endhead
-%\directlua{print_glyphs(10,1360)} \\ \cline{2-11}
-\directlua{print_glyphs(10,65463)} \\ \cline{2-11}
-\end{longtable}
-\endgroup
-
-\subsection{Default Sans style Condensed}
-
-
-\begingroup
-\color{black!20}\sffamilyCon
-\begin{longtable}{>{\color{black!50}\ttfamily\footnotesize}r|
- *{10}{>{\color{black}}p{1.5em}|}}
-\cline{2-11}
-\endhead
-%\directlua{print_glyphs(10,1360)} \\ \cline{2-11}
-\directlua{print_glyphs(10,65463)} \\ \cline{2-11}
-\end{longtable}
-\endgroup
-
-\subsection{Default Mono style}
-
-\begingroup
-\color{black!20}\ttfamily
-\begin{longtable}{>{\color{black!50}\ttfamily\footnotesize}r|
- *{10}{>{\color{black}}p{1.5em}|}}
-\cline{2-11}
-\endhead
-%\directlua{print_glyphs(10,1360)} \\ \cline{2-11}
-\directlua{print_glyphs(10,65463)} \\ \cline{2-11}
-\end{longtable}
-\endgroup
-
-
-\rmfamily
@@ -285,15 +190,34 @@ The stylistic sets are available for example by
\subsubsection{StylisticSet=1: simple lowercase a}
-
+\paragraph{Serif}
{(Default a\multido{\iA=224+1}{6}{\symbol{\iA}}\symbol{257}\symbol{259}\symbol{261}) and
\fontspec{IBMPlexSerif-Regular.otf}[StylisticSet=1,Scale=0.94]a%
\multido{\iA=224+1}{6}{\symbol{\iA}}\symbol{257}\symbol{259}\symbol{261}}
+\paragraph{Sans Serif}
+{\sffamily (Default a\multido{\iA=224+1}{6}{\symbol{\iA}}\symbol{257}\symbol{259}\symbol{261}) and
+\fontspec{IBMPlexSans-Regular.otf}[StylisticSet=1,Scale=0.94]a%
+\multido{\iA=224+1}{6}{\symbol{\iA}}\symbol{257}\symbol{259}\symbol{261}}
+
+\paragraph{Mono}
+{\ttfamily (Default a\multido{\iA=224+1}{6}{\symbol{\iA}}\symbol{257}\symbol{259}\symbol{261}) and
+\fontspec{IBMPlexMono-Regular.otf}[StylisticSet=1,Scale=0.94]a%
+\multido{\iA=224+1}{6}{\symbol{\iA}}\symbol{257}\symbol{259}\symbol{261}}
+
+
+
\subsubsection{StylisticSet=2: simple lowercase g}
+\paragraph{Serif}
{(Default g) and \fontspec{IBMPlexSerif-Regular.otf}[StylisticSet=2,Scale=0.94]g}
+\paragraph{Sans Serif}
+{\textsf{(Default g) and }\fontspec{IBMPlexSans-Regular.otf}[StylisticSet=2,Scale=0.94]g}
+
+\paragraph{Mono}
+{\texttt{(Default g) and }\fontspec{IBMPlexMono-Regular.otf}[StylisticSet=2,Scale=0.94]g}
+
\subsubsection{StylisticSet=3: slashed zero}
{(Default 0) and \fontspec{IBMPlexSerif-Regular.otf}[StylisticSet=3,Scale=0.94]0}
@@ -304,18 +228,23 @@ The stylistic sets are available for example by
\subsubsection{StylisticSet=4: special lowercase eszett}
+\paragraph{Serif}
{(Default ß) and \fontspec{IBMPlexSerif-Regular.otf}[StylisticSet=5,Scale=0.94]ß}
+\paragraph{Sans Serif}
+{\sffamily(Default ß) and \fontspec{IBMPlexSans-Regular.otf}[StylisticSet=5,Scale=0.94]ß}
-\subsection{Captital german eszett}
-It is available with \verb|\SS|$\rightarrow$\SS
+\paragraph{Mono}
+{\ttfamily(Default ß) and \fontspec{IBMPlexMono-Regular.otf}[StylisticSet=5,Scale=0.94]ß}
+\subsection{Captital german eszett}
+It is available with \verb|\SS|$\rightarrow$\SS$\rightarrow$\textsf{\SS}$\rightarrow$\texttt{\SS}
+(Serif, Sans-Serif, Mono)
\subsection{Vertical position}
-
\begin{externalDocument}[
% grfOptions={width=\linewidth},
frame,
@@ -442,10 +371,6 @@ SemiBold & Bold, BoldItalic
\end{tabular}
-\clearpage
-
-
-
\begin{externalDocument}[
% grfOptions={width=\linewidth},
@@ -477,7 +402,7 @@ SemiBold & Bold, BoldItalic
\section{Special symbols}
\begin{tabular}{@{}l@{ $\rightarrow$ }l @{\qquad} l@{ $\rightarrow$ }l @{}}
-\verb|\IBM| & \IBM & \verb|\upleftarrow| & \upleftarrow\\
+%\verb|\IBM| & \IBM & \verb|\upleftarrow| & \upleftarrow\\
%\verb|\IBM[1]| & \IBM[1]&
\multicolumn{2}{c}{} & \verb|\uprightarrow| & \uprightarrow\\
%\verb|\IBM[2]| & \IBM[2]&
@@ -491,7 +416,6 @@ SemiBold & Bold, BoldItalic
\multicolumn{2}{c}{} & \verb|\fullrightturn| & \fullrightturn\\
\end{tabular}
-\clearpage
\section{Examples without special Settings}
@@ -832,24 +756,61 @@ then you have to define all combinations yourself
\fi
-\section{Closing}
-The font list of this documentation is:
+
+\clearpage
+
+\section{The font files}
+
+
+The fonts are saved in the systems font directory or in the TDS
+(\TeX\ Directory Structure): % list of this documentation is:
%\rightmargin=-1cm
-\scriptsize\ttfamily
-\expandafter\IfFileExists\expandafter{\jobname.fonts}%
- {\lstinputlisting[xrightmargin=-1cm]{\jobname.fonts}}{}
+\begin{multicols}{2}
+\runExtCmd[redirect]{ls fonts/}{\jobname}
+\end{multicols}
+
+%\scriptsize\ttfamily
+%\expandafter\IfFileExists\expandafter{\jobname.fonts}%
+% {\lstinputlisting[xrightmargin=-1cm]{\jobname.fonts}}{}
-\normalfont\rmfamily
+%\normalfont\rmfamily
%\rightmargin=0cm
-\nocite{*}
-\printbibliography
+\clearpage
+\newgeometry{%margin=1cm,bmargin=2cm,
+ tmargin=1cm,bmargin=1cm,includeheadfoot}
-\end{document}
+\section{The Glyphs}
+\subsection{Default Serif style}
+Command: \cs{rmfamily}
+\displayfonttable{IBMPlexSerif-Regular.otf}%[Scale=0.95]
+
+
+\subsection{Default Sans style}
+Command: \cs{sffamily}
+
+
+\displayfonttable{IBMPlexSans-Regular.otf}%[Scale=0.95]
+
+\subsection{Default Sans Condensed style}
+Command: \cs{sffamilyCon}
+
+\displayfonttable{IBMPlexSansCondensed-Regular.otf}%[Scale=0.95]
+
+\subsection{Default Mono style}
+
+Command: \cs{ttfamily}
+\displayfonttable{IBMPlexMono-Regular.otf}%[Scale=0.95]
+
+
+
+\nocite{*}
+\printbibliography
+\end{document}