Create merged fonts for symbols.

This commit is contained in:
2025-10-09 16:46:21 -05:00
parent 021e41126b
commit a74e5884ad
125 changed files with 11270864 additions and 46 deletions

View File

@@ -10,7 +10,9 @@
\NewDocumentCommand{\fontpath}{}{PrimeTeX/fonts}
% Main font: Roboto Serif (Light).
% Main font: Roboto Serif (Light), with symbols merged in from, in order of
% priority, Noto Serif, Noto Emoji, Noto Sans Symbols, and Noto
% Sans Symbols 2.
\setmainfont{RobotoSerif}[
Path = {\fontpath/RobotoSerif/},
Extension = .ttf,
@@ -53,33 +55,33 @@
]
% Emoji font: Noto Emoji
\newfontfamily{\emojifamily}{NotoEmoji}[
Path = {\fontpath/},
Extension = .ttf,
UprightFont = NotoEmoji/NotoEmoji-Regular,
BoldFont = NotoEmoji/NotoEmoji-Bold,
ItalicFont = NotoEmoji/NotoEmoji-Light,
BoldItalicFont = NotoEmoji/NotoEmoji-SemiBold,
]
% \newfontfamily{\emojifamily}{NotoEmoji}[
% Path = {\fontpath/},
% Extension = .ttf,
% UprightFont = NotoEmoji/NotoEmoji-Regular,
% BoldFont = NotoEmoji/NotoEmoji-Bold,
% ItalicFont = NotoEmoji/NotoEmoji-Light,
% BoldItalicFont = NotoEmoji/NotoEmoji-SemiBold,
% ]
\newfontfamily{\mathfamily}{NotoSerif}[
Path = {\fontpath/NotoSerif/},
Extension = .ttf,
UprightFont = *-Regular,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
]
% \newfontfamily{\mathfamily}{NotoSerif}[
% Path = {\fontpath/NotoSerif/},
% Extension = .ttf,
% UprightFont = *-Regular,
% BoldFont = *-Bold,
% ItalicFont = *-Italic,
% BoldItalicFont = *-BoldItalic,
% ]
% Symbol font: Noto Sans Symbols 2
\newfontfamily{\symbfamily}{NotoSansSymbols2}[
Path = {\fontpath/},
Extension = .ttf,
UprightFont = *-Regular,
BoldFont = *-Regular,
ItalicFont = *-Regular,
BoldItalicFont = *-Regular,
]
% % Symbol font: Noto Sans Symbols 2
% \newfontfamily{\symbfamily}{NotoSansSymbols}[
% Path = {\fontpath/NotoSansSymbols/},
% Extension = .ttf,
% UprightFont = *-Regular,
% BoldFont = *-Bold,
% ItalicFont = *-Light,
% BoldItalicFont = *-SemiBold,
% ]
\setmathrm{RobotoSerif}
@@ -88,9 +90,9 @@
\NewDocumentCommand{\mono}{m}{\texttt{#1}}
\NewDocumentCommand{\slab}{m}{{\sbfamily{}#1}}
\NewDocumentCommand{\code}{m}{\mono{\small{}#1}}
\NewDocumentCommand{\emoji}{m}{{\emojifamily{}#1}}
\NewDocumentCommand{\maths}{m}{{\mathfamily{}#1}}
\NewDocumentCommand{\symb}{m}{{\symbfamily{}#1}}
% \NewDocumentCommand{\emoji}{m}{{\emojifamily{}#1}}
% \NewDocumentCommand{\maths}{m}{{\mathfamily{}#1}}
% \NewDocumentCommand{\symb}{m}{{\symbfamily{}#1}}
%------------------------------- Symbol Commands -------------------------------
@@ -100,35 +102,23 @@
\NewDocumentCommand{\bdot}{}{.\zws}
% Text-mode angle bracket ornaments.
\NewDocumentCommand{\ab}{s O{}}{{\symbfamily ❬}#1{\symbfamily ❭}}
\NewDocumentCommand{\ab}{s O{}}{〈#1〉}
\NewDocumentCommand{\checkmark}{s O{PrimeGreen} O{PrimeBrightGreen}}{
\bool_if:nTF {#1} {
\ColorText[#2][#3][\symbfamily]{✓}
\ColorText[#2][#3][]{✓}
} {
{\symbfamily ✓}
{✓}
}
}
\NewDocumentCommand{\xmark}{s O{PrimeRed} O{PrimeBrightRed}}{
\bool_if:nTF {#1} {
\ColorText[#2][#3][\symbfamily]{✗}
\ColorText[#2][#3][]{✗}
} {
{\symbfamily ✗}
{✗}
}
}
\NewDocumentCommand{\checkbox}{}{
{\symbfamily ☑}
}
\NewDocumentCommand{\xbox}{}{
{\symbfamily ☒}
}
\NewDocumentCommand{\emptybox}{}{
{\symbfamily ☐}
}
%--------------------------- MenuKeys Configuration ----------------------------
\newmenucolortheme{autoModeColor}{named}{pageColor}{textColor}{textColor}[pageColor][textColor][textColor]