diff options
Diffstat (limited to 'Master/texmf-dist/source/fonts/inconsolata-nerd-font/inconsolata-nerd-font.dtx')
-rw-r--r-- | Master/texmf-dist/source/fonts/inconsolata-nerd-font/inconsolata-nerd-font.dtx | 75 |
1 files changed, 63 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/fonts/inconsolata-nerd-font/inconsolata-nerd-font.dtx b/Master/texmf-dist/source/fonts/inconsolata-nerd-font/inconsolata-nerd-font.dtx index 34ef638be70..31cda7110a7 100644 --- a/Master/texmf-dist/source/fonts/inconsolata-nerd-font/inconsolata-nerd-font.dtx +++ b/Master/texmf-dist/source/fonts/inconsolata-nerd-font/inconsolata-nerd-font.dtx @@ -26,11 +26,18 @@ % %<*driver> \documentclass{l3doc} +\usepackage[UKenglish]{babel} \usepackage{libertinus-otf} \usepackage{hvlogos} % The next line is needed so that \GetFileInfo will be able to pick up version % data. \usepackage{inconsolata-nerd-font} +\usepackage{unicodefonttable} +\fonttablesetup{missing-glyph-color=black!25, color=black!50} +\usepackage{microtype} +\EnableCrossrefs +\CodelineIndex +\RecordChanges \begin{document} \RecordChanges \DocInput{\jobname.dtx} @@ -63,6 +70,8 @@ % \tl_set_eq:NN, % } % +% \changes{v0.1}{2023–09–09}{First public release} +% % \GetFileInfo{inconsolata-nerd-font.sty} % % \title{^^A @@ -232,6 +241,26 @@ % to typeset the words \enquote{an example} using Inconsolata Nerd Font: % Just \textinconsolatanf{an example} sentence. % +% \section{Font Tables}\label{sec:doc-font-tables} +% +% \changes{v0.3}{2023-09-13}{Add font tables to the documentation.} +% +% This section provides character tables of the different font variants, +% created using Frank Mittelbach's \pkg{unicodefonttable} package. +% Thanks to Herbert Voß for his suggestion to add these. +% +% \subsection{Regular}\label{sec:doc-font-tables-regular} +% +% \displayfonttable{InconsolataNerdFont-Regular.ttf} +% +% \subsection{Mono Regular}\label{sec:doc-font-tables-mono} +% +% \displayfonttable{InconsolataNerdFontMono-Regular.ttf} +% +% \subsection{Proportional Regular}\label{sec:doc-font-tables-propo} +% +% \displayfonttable{InconsolataNerdFontPropo-Regular.ttf} +% % \end{documentation} % % \clearpage @@ -283,7 +312,7 @@ % % Identify the package and give the overall version information. % \begin{macrocode} -\ProvidesExplPackage {inconsolata-nerd-font} {2023-09-12} {0.2} +\ProvidesExplPackage {inconsolata-nerd-font} {2023-09-13} {0.3} {Support package to use the Inconsolata Nerd Font TrueType fonts} % \end{macrocode} % @@ -355,15 +384,9 @@ } % \end{macrocode} % -% Define a font family for the three fonts and commands for easier usage -% \begin{macro}{ -% \inconsolatanffamily, -% \inconsolatanfmonofamily, -% \inconsolatanfpropofamily, -% \textinconsolatanf, -% \textinconsolatanfmono, -% \textinconsolatanfpropo, -% } +% Define a font family for the three fonts and commands for easier usage. +% \begin{macro}{\inconsolatanffamily} +% The defaut font accessible as a \LaTeX{} font family. % \begin{macrocode} \newfontfamily\inconsolatanffamily{InconsolataNerdFont-Regular.ttf}[ BoldFont = InconsolataNerdFont-Bold.ttf, @@ -371,21 +394,49 @@ NFSSFamily = inconsolatanf, Scale = \l_@@_scale_tl, ] +% \end{macrocode} +% \end{macro} +% \begin{macro}{\inconsolatanfmonofamily} +% \changes{v0.2}{2023–09–12}{Added macro} +% The mono font variant, accessible as a \LaTeX{} font family. +% \begin{macrocode} \newfontfamily\inconsolatanfmonofamily{InconsolataNerdFontMono-Regular.ttf}[ BoldFont = InconsolataNerdFontMono-Bold.ttf, FakeStretch = {0.9}, NFSSFamily = inconsolatanfmono, Scale = \l_@@_scale_tl, ] +% \end{macrocode} +% \end{macro} +% \begin{macro}{\inconsolatanfpropofamily} +% \changes{v0.2}{2023–09–12}{Added macro} +% The propo font variant, accessible as a \LaTeX{} font family. +% \begin{macrocode} \newfontfamily\inconsolatanfpropofamily{InconsolataNerdFontPropo-Regular.ttf}[ BoldFont = InconsolataNerdFontPropo-Bold.ttf, FakeStretch = {0.9}, NFSSFamily = inconsolatanfpropo, Scale = \l_@@_scale_tl, ] - +% \end{macrocode} +% \end{macro} +% \begin{macro}{\textinconsolatanf} +% A macro to typeset text in the default font variant. +% \begin{macrocode} \DeclareTextFontCommand{\textinconsolatanf}{\inconsolatanffamily} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\textinconsolatanfmono} +% \changes{v0.2}{2023–09–12}{Added macro} +% A macro to typeset text in the mono font variant. +% \begin{macrocode} \DeclareTextFontCommand{\textinconsolatanfmono}{\inconsolatanffamilymono} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\textinconsolatanfpropo} +% \changes{v0.2}{2023–09–12}{Added macro} +% A macro to typeset text in the propo font variant. +% \begin{macrocode} \DeclareTextFontCommand{\textinconsolatanfpropo}{\inconsolatanffamilypropo} % \end{macrocode} % \end{macro} @@ -408,4 +459,4 @@ % \end{implementation} % % \PrintIndex -% \PrintChanges
\ No newline at end of file +% \PrintChanges |