added local fonts

This commit is contained in:
2024-10-18 12:02:19 +02:00
parent 4393325d2d
commit 6dacdd95af
5 changed files with 25 additions and 3 deletions
+16 -2
View File
@@ -31,9 +31,23 @@
\definecolor{hope_white}{HTML}{916836}
\definecolor{hope_green}{HTML}{36913a}
\definecolor{hope_red}{HTML}{91363b}
\setmainfont[Numbers={OldStyle, Proportional},RawFeature={+ss06}]{EB Garamond}
\newfontfamily\headingfont[]{Dosis}
\newcommand{\raisedrulefill}[2][0ex]{\leaders\hbox{\rule[#1]{1pt}{#2}}\hfill}
\setmainfont[
Path = ../fonts/EBGaramond12/fonts/ttf/,
Extension = .ttf,
UprightFont = *-Regular,
BoldFont = *-Bold,
ItalicFont = *-Italic,
BoldItalicFont = *-BoldItalic,
Numbers = {OldStyle, Proportional},
RawFeature = {+ss06}
]{EBGaramond}
\newfontfamily\headingfont[
Path=../fonts/dosis-vf/fonts/ttf/,
Extension = .ttf,
UprightFont = *-Regular,
BoldFont = *-Bold
]{Dosis}
\titleformat{\section}{\headingfont\color{hope_[% color %]}\bfseries\huge}{\thesection. }{0em}{#1}
\titleformat{\subsection}{\headingfont\Large}{\thesubsection. }{0em}{\color{black}#1\,\color{hope_[% color %]}\raisedrulefill[0.0ex]{2pt}}
\newcommand{\song}[3]{%