summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/inconsolata-nerd-font
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-09-10 19:28:40 +0000
committerKarl Berry <karl@freefriends.org>2023-09-10 19:28:40 +0000
commit0c348ebe85171a026733f65f8517076a88a4c4fd (patch)
tree03ba92fb97d43617e086eb109b6f2ae95ed024f5 /Master/texmf-dist/tex/latex/inconsolata-nerd-font
parentfa13ce400ddc9177825975826a6f0855453be2d4 (diff)
inconsolata-nerd-font (10sep23)
git-svn-id: svn://tug.org/texlive/trunk@68231 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/inconsolata-nerd-font')
-rw-r--r--Master/texmf-dist/tex/latex/inconsolata-nerd-font/inconsolata-nerd-font.sty98
1 files changed, 98 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/inconsolata-nerd-font/inconsolata-nerd-font.sty b/Master/texmf-dist/tex/latex/inconsolata-nerd-font/inconsolata-nerd-font.sty
new file mode 100644
index 00000000000..ab870a162fe
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/inconsolata-nerd-font/inconsolata-nerd-font.sty
@@ -0,0 +1,98 @@
+%%
+%% This is file `inconsolata-nerd-font.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% inconsolata-nerd-font.dtx (with options: `package')
+%% Copyright (C) 2023 by Stephan Lukasczyk <stephan@dante.de>
+%%
+%% It may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License (LPPL), either version 1.3c of
+%% this license or (at your option) any later version. The latest
+%% version of this license is in the file
+%%
+%% https://www.latex-project.org/lppl.txt
+%%
+%% This work is "maintained" (as per LPPL maintenance status) by
+%% Stephan Lukasczyk
+%%
+%% This work consists of the files inconsolata-nerd-font.dtx,
+%% inconsolata-nerd-font.ins,
+%% InconsolataNerdFont-Bold.ttf,
+%% InconsolataNerdFont-Regular.ttf,
+%% InconsolataNerdFontMono-Bold.ttf,
+%% InconsolataNerdFontMono-Regular.ttf,
+%% InconsolataNerdFontPropo-Bold.ttf,
+%% InconsolataNerdFontPropo-Regular.ttf,
+%% and the derived files inconsolata-nerd-font.pdf, and
+%% inconsolata-nerd-font.sty
+%%
+\@ifundefined{ExplLoaderFileDate}
+ { \RequirePackage{expl3} }
+ {}
+\@ifl@t@r\ExplLoaderFileDate{2020-01-09}
+ {}
+ {%
+ \PackageError{inconsolata-nerd-font}{Support package expl3 too old}
+ {%
+ You need to update your installation of the bundles 'l3kernel' and
+ 'l3packages'.\MessageBreak
+ Loading~inconsolata-nerd-font~will~abort!%
+ }%
+ \endinput
+ }%
+\providecommand \IfFormatAtLeastTF { \@ifl@t@r \fmtversion }
+\ProvidesExplPackage {inconsolata-nerd-font} {2023-09-09} {0.1}
+ {Support package to use the Inconsolata Nerd Font TrueType fonts}
+\tl_new:N \l__slcd_inf_variant_tl
+
+\keys_define:nn { inconsolatanerdfont }
+ {
+ variant .choices:nn = { default, mono, propo } {
+ \tl_set_eq:NN \l__slcd_inf_variant_tl \l_keys_choice_tl
+ },
+
+ scale .tl_set:N = \l__slcd_inf_scale_tl,
+ Scale .tl_set:N = \l__slcd_inf_scale_tl,
+ }
+
+\keys_set:nn { inconsolatanerdfont }
+ {
+ variant = default,
+ scale = 0.9,
+ }
+\tl_clear:N \l__slcd_inf_variant_tl
+\IfFormatAtLeastTF { 2022-06-01 }
+ { \ProcessKeyOptions [ inconsolatanerdfont ] }
+ {
+ \RequirePackage { l3keys2e }
+ \ProcessKeysOptions { inconsolatanerdfont }
+ }
+\tl_if_empty:NT \l__slcd_inf_variant_tl
+ {
+ \tl_set:Nn \l__slcd_inf_variant_tl { default }
+ }
+\RequirePackage{fontspec}
+\tl_new:N \l__slcd_inf_font_name_tl
+\tl_set:Nn \l__slcd_inf_font_name_tl {InconsolataNerdFont}
+\tl_if_eq:NnTF \l__slcd_inf_variant_tl { mono }
+ { \tl_put_right:Nn \l__slcd_inf_font_name_tl {Mono} }
+ {
+ \tl_if_eq:NnT \l__slcd_inf_variant_tl { propo }
+ { \tl_put_right:Nn \l__slcd_inf_font_name_tl {Propo} }
+ }
+\newfontfamily\inconsolatanffamily{InconsolataNerdFont-Regular.ttf}[
+ BoldFont = InconsolataNerdFont-Bold.ttf,
+ FakeStretch = {0.9},
+ NFSSFamily = inconsolatanf,
+ Scale = \l__slcd_inf_scale_tl,
+]
+\DeclareTextFontCommand{\textinconsolatanf}{\inconsolatanffamily}
+\setmonofont{\l__slcd_inf_font_name_tl}[
+ BoldFont = *-Bold,
+ Extension = .ttf,
+ FakeStretch = {0.9},
+ Scale = \l__slcd_inf_scale_tl,
+ UprightFont = *-Regular,
+]