Skip to content

Commit dbac386

Browse files
authored
Add Manrope variable font (#118)
Manrope is an open-source modern sans-serif font family.
1 parent 1cb35ac commit dbac386

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Diff for: Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ $(PROJ).pdf: lkmpg.tex
77
pdflatex -shell-escape $< 2>/dev/null >/dev/null
88
rm -rf _minted-$(PROJ)
99

10-
html: lkmpg.tex html.cfg
10+
html: lkmpg.tex html.cfg assets/Manrope_variable.ttf
1111
sed $ 's/\t/ /g' lkmpg.tex > lkmpg-for-ht.tex
1212
make4ht --shell-escape --utf8 --format html5 --config html.cfg --output-dir html lkmpg-for-ht.tex "fn-in"
1313
ln -sf lkmpg-for-ht.html html/index.html
14+
cp assets/Manrope_variable.ttf html/Manrope_variable.ttf
1415
rm -f lkmpg-for-ht.tex lkmpg-for-ht.xref lkmpg-for-ht.tmp lkmpg-for-ht.html lkmpg-for-ht.css lkmpg-for-ht.4ct lkmpg-for-ht.4tc lkmpg-for-ht.dvi lkmpg-for-ht.lg lkmpg-for-ht.idv lkmpg*.svg lkmpg-for-ht.log lkmpg-for-ht.aux
1516
rm -rf _minted-$(PROJ) _minted-lkmpg-for-ht
1617

@@ -21,4 +22,4 @@ clean:
2122
rm -f *.dvi *.aux *.log *.ps *.pdf *.out lkmpg.bbl lkmpg.blg lkmpg.lof lkmpg.toc
2223
rm -rf html
2324

24-
.PHONY: html
25+
.PHONY: html

Diff for: assets/Manrope_variable.ttf

154 KB
Binary file not shown.

Diff for: html.cfg

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
overflow-x: hidden;
88
}}
99

10+
\Css{@font-face {
11+
font-family: Manrope;
12+
src: url(Manrope_variable.ttf);
13+
}}
14+
1015
\Css{body {
1116
max-width: 55rem;
1217
box-sizing: border-box;
@@ -24,6 +29,7 @@ color: \#0060DF;
2429

2530
\Css{p, a {
2631
font-size: 1.2rem;
32+
font-family: Manrope;
2733
}}
2834

2935
\Css{p + pre {

0 commit comments

Comments
 (0)