Libertinus
One family for the text, the notes, the code and the math
Libertinus is a family of fonts grown from Philipp Poll’s Linux Libertine and Linux Biolinum, which Khaled Hosny forked in 2012 and which Caleb Maclennan now maintains.The fonts are free, under the SIL Open Font License, and come with the theme in static/libertinus/. LaTeX loads the same family with \usepackage{libertinus}, or libertinus-otf under XeLaTeX and LuaLaTeX. It has a serif for the text, a sans-serif, a monospaced face and an OpenType math font drawn to match the serif, so a page set in it reads as one voice: the letters of and in a formula are the letters of the text around them.
Turning it on#
This page sets both fonts in its front matter:
font: libertinus # Libertinus Serif, Sans and Mono
mathFont: libertinus # Libertinus Mathand a whole site sets them in its configuration:
[params]
font = "libertinus"
[params.math]
font = "libertinus"The two are independent: Libertinus text with Euler math (mathFont: euler), or ET Book text with Libertinus Math, work as well.
The text faces#
Libertinus Serif has true small caps, so small capitals and the first words of a new thought come from the font and are not shrunk capitals; old-style figures, which the numbers of the notes always use and which this page turns on for the whole text (1984, 2026) with the class option numerals: oldstyle; ligatures (fi, fl, ff, ffi); and Greek and Cyrillic: ἀρχή, λόγος, азбука.Each face comes in two files: the Latin characters, and the rest (Greek, Cyrillic, Hebrew, IPA, symbols), which a browser downloads only for a page that uses them, as this one does. Its italic is a true italic, and there is bold and bold italic.
The sans-serif, Libertinus Sans, replaces Gill Sans wherever the theme sets sans-serif: in the sans shortcode, in the tables and with the sfsidenotes class option.
| Face | Use on this page |
|---|---|
| Libertinus Serif | text, headings, notes |
| Libertinus Sans | tables, sans |
| Libertinus Mono | code |
| Libertinus Math | formulas |
Code is set in Libertinus Mono:
func gauss(n int) int { return n * (n + 1) / 2 }Math#
Libertinus Math is an OpenType math font, so KaTeX hands the browser MathML, as for the Euler page: , , the alphabets , , , , and displays,
with their alignment and numbers:
(1)Equation (1) has a number of its own, and a sidenote holds math in the same font.For every real , . Unlike Euler, whose letters are upright, Libertinus Math sets the letters of variables in italic, as Computer Modern and most math fonts do.