diff --git a/Fonts.sty b/Fonts.sty index 38ad187..aa713a6 100644 --- a/Fonts.sty +++ b/Fonts.sty @@ -5,9 +5,11 @@ %#region \RequirePackage{fontspec} + \newcommand{\fontpath}{PrimeTeX/fonts} + % Main font: Roboto Serif \setmainfont{RobotoSerif}[ - Path = PrimeTeX/fonts/RobotoSerif/, + Path = {\fontpath/RobotoSerif/}, Extension = .ttf, UprightFont = *-Light, BoldFont = *-SemiBold, @@ -17,7 +19,7 @@ % Sans serif font: Roboto \setsansfont{Roboto}[ - Path = PrimeTeX/fonts/Roboto/, + Path = {\fontpath/Roboto/}, Extension = .ttf, UprightFont = *-Regular, BoldFont = *-Bold, @@ -27,7 +29,7 @@ % Monospace font: Roboto Mono \setmonofont{RobotoMono}[ - Path = PrimeTeX/fonts/RobotoMono/, + Path = {\fontpath/RobotoMono/}, Extension = .ttf, UprightFont = *-Regular, BoldFont = *-Bold, @@ -37,16 +39,16 @@ % Headings & Titles font: Roboto Slab \newfontfamily{\sbfamily}{RobotoSlab}[ - Path = PrimeTeX/fonts/RobotoSlab/, + Path = {\fontpath/RobotoSlab/}, Extension = .ttf, UprightFont = *-SemiBold, BoldFont = *-Black, ] %#endregion -\newcommand{\objref}[1]{\textsf{\textbf{#1}}} - +\newcommand{\objref}[1]{{\textbf{#1}}} +%\textsf \newcommand{\serif}[1]{\textrm{#1}} -\newcommand{\sans}[1]{\textsf{#1}} +%\newcommand{\sans}[1]{\textsf{#1}} \newcommand{\mono}[1]{\texttt{#1}} \newcommand{\slab}[1]{{\sbfamily{}#1}} \ No newline at end of file