aboutsummaryrefslogtreecommitdiff
path: root/docs/font.mk
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-04-23 17:49:28 +0200
committerlonkaars <loek@pipeframe.xyz>2024-04-23 17:49:28 +0200
commitabc1d59a6aa5cf2e3f4b99f14d57cb462c95b7d1 (patch)
tree33720002bf2172f1270c852b0eb1aee8b92b6e4c /docs/font.mk
parent6dd2000fd69fb54240159b1b950036e745e17bcc (diff)
parent424c5a281282451b224da0ba26e35fb03bf2ecf5 (diff)
Merge branch 'wip/docs'
Diffstat (limited to 'docs/font.mk')
-rw-r--r--docs/font.mk36
1 files changed, 36 insertions, 0 deletions
diff --git a/docs/font.mk b/docs/font.mk
new file mode 100644
index 0000000..8646e0f
--- /dev/null
+++ b/docs/font.mk
@@ -0,0 +1,36 @@
+TEX_GYRE_SCHOLA += res/font/texgyreschola-bold.otf
+TEX_GYRE_SCHOLA += res/font/texgyreschola-bolditalic.otf
+TEX_GYRE_SCHOLA += res/font/texgyreschola-italic.otf
+TEX_GYRE_SCHOLA += res/font/texgyreschola-regular.otf
+$(TEX_GYRE_SCHOLA) &:
+ mkdir -p res/font
+ curl -sLo- 'https://www.gust.org.pl/projects/e-foundry/tex-gyre/schola/qcs2.005otf.zip' > texgyreschola.zip
+ unzip -oq texgyreschola.zip -d res/font
+ rm texgyreschola.zip
+
+JETBRAINS_MONO += res/font/JetBrainsMono-Bold.ttf
+JETBRAINS_MONO += res/font/JetBrainsMono-BoldItalic.ttf
+JETBRAINS_MONO += res/font/JetBrainsMono-Italic.ttf
+JETBRAINS_MONO += res/font/JetBrainsMono-Regular.ttf
+$(JETBRAINS_MONO) &:
+ mkdir -p res/font
+ curl -sLo- 'https://download-cdn.jetbrains.com/fonts/JetBrainsMono-2.304.zip' > jetbrainsmono.zip
+ unzip -oqj jetbrainsmono.zip -x 'fonts/webfonts/*' 'fonts/variable/*' '*/JetBrainsMonoNL-*' 'AUTHORS.txt' 'OFL.txt' -d res/font
+ rm jetbrainsmono.zip
+
+INTER += res/font/Inter-Bold.otf
+INTER += res/font/Inter-BoldItalic.otf
+INTER += res/font/Inter-Italic.otf
+INTER += res/font/Inter-Regular.otf
+$(INTER) &:
+ mkdir -p res/font
+ curl -sLo- 'https://github.com/rsms/inter/releases/download/v4.0/Inter-4.0.zip' > inter.zip
+ unzip -oqj inter.zip -x 'web/*' 'extras/ttf/*' '*.ttc' '*Variable*.ttf' '*/InterDisplay-*' 'LICENSE.txt' 'help.txt' -d res/font
+ rm inter.zip
+
+SANS_SERIF_FONTS := $(INTER)
+SERIF_FONTS := $(TEX_GYRE_SCHOLA)
+MONOSPACE_FONTS := $(JETBRAINS_MONO)
+
+ALL_FONTS := $(SANS_SERIF_FONTS) $(SERIF_FONTS) $(MONOSPACE_FONTS)
+