Skip to content
Snippets Groups Projects
Commit 08413ae3 authored by Jasper Clemens Gräflich's avatar Jasper Clemens Gräflich
Browse files

Add Fira font files to project

Because the GitLab CI can’t run apt-get at the moment, the font must be
embedded into the project instead of installed in the container.
Also, a switch is added so that if a machine has the font installed, it
uses that version. This is needed because LuaLaTeX doesn’t like using
the project .ttf files on my machine. So this is a workaround for that.
parent 7f2e3ca2
No related branches found
No related tags found
No related merge requests found
Pipeline #86545 passed
......@@ -2,3 +2,7 @@ assets/rust-logo-blk.svg filter=lfs diff=lfs merge=lfs -text
assets/copper_patina.jpg filter=lfs diff=lfs merge=lfs -text
assets/verdigris-logo.xcf filter=lfs diff=lfs merge=lfs -text
assets/verdigris-logo.png filter=lfs diff=lfs merge=lfs -text
fonts/FiraMono-RegularItalic.otf filter=lfs diff=lfs merge=lfs -text
fonts/FiraCode-Bold.ttf filter=lfs diff=lfs merge=lfs -text
fonts/FiraCode-Regular.ttf filter=lfs diff=lfs merge=lfs -text
fonts/FiraMono-BoldItalic.otf filter=lfs diff=lfs merge=lfs -text
File added
File added
File added
File added
......@@ -2,7 +2,18 @@
% Font and Language
%%%
\usepackage{fontspec}
\setmonofont{Fira Code}[RawFeature={+onum, +ss07}]
\IfFontExistsTF{Fira Code}{
\setmonofont{Fira Code}[RawFeature={+onum, +ss07}]
}{
\setmonofont{FiraCode-Regular.ttf}[%
Path = ../fonts/,%
BoldFont = ../fonts/FiraCode-Bold.ttf,%
% FiraCode has no italics itself, so we borrow from FiraMono:
ItalicFont = ../fonts/FiraMono-RegularItalic.otf,%
BoldItalicFont = ../fonts/FiraMono-BoldItalic.otf,%
RawFeature={+onum, +ss07}
]
}
\usepackage{polyglossia}
\setdefaultlanguage{german}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment