The forum members are trying to help you find a solution but we need more information. Answers to these questions would be very helpful:
- If you run this command from the same place that you run
typst compile, what is the output?
typst fonts --ignore-system-fonts --ignore-embedded-fonts --font-path "."
- Did you install the fonts downloaded from github? Or are they in a directory near your
.typ file?
- What is the structure of your project? Where is the Typst file you are trying to compile and where are your font files?
If any of these questions are unclear please ask.
For instance, I will answer all the questions above. I created this project on my local PC to help understand and solve your problem.
The document creates a table that uses every single font provided by the github (exact ZIP archive downloaded) and applies various combinations of #smallcaps() and #strong() to the text “Herrman, M. 1981a”.
Question 1
These are the fonts available to my project when I tell Typst to ignore system and embedded fonts. That means it only has access to the font files in the project scope. In this case the project scope only includes the fonts I just downloaded.
> typst fonts --ignore-system-fonts --ignore-embedded-fonts --font-path "."
Libertinus Keyboard
Libertinus Math
Libertinus Mono
Libertinus Sans
Libertinus Serif
Libertinus Serif Display
Libertinus Serif Initials
Question 2
I downloaded the fonts from github and they are not installed. They are in a directory next to my .typ file.
Question 3
My project looks like this:
/Project Directory
Main.typ
/Libertinus-7.051
/documentation
/static
/OTF
*all the OTF font files*
/TTF
*all the TTF font files*
/WOFF2
*all the WOFF2 font files*
Project Output
Below is the content of my Main.typ. Further down is the output when I run it with this command:
typst c --ignore-system-fonts --ignore-embedded-fonts --font-path "." .\LibertinusCapitals.typ
Main.typ
#set page(height: auto, width: auto)
#set page(margin: 1em)
#let test-text = [Herrmann, M. 1981a]
#let test-row(font-to-use) = (
text(font: font-to-use, context text.font),
text(font: font-to-use, test-text),
text(font: font-to-use, smallcaps(test-text)),
text(font: font-to-use, strong(test-text)),
text(font: font-to-use, smallcaps(strong(test-text))),
text(font: font-to-use, strong(smallcaps(test-text)))
)
#let fonts-to-try = (
"Libertinus Keyboard",
"Libertinus Math",
"Libertinus Mono",
"Libertinus Sans",
"Libertinus Serif",
"Libertinus Serif Display",
"Libertinus Serif Initials",
)
#table(
columns: 6,
table.header[Active Font][Normal][Small Caps][Strong][Small Caps + Strong][Strong + Small Caps],
..for current-font in fonts-to-try {
test-row(current-font)
}
)
Notice that these fonts successfully combine small caps and strong:
- Libertinus Sans
- Libertinus Serif
- LIbertinus Serif Initials
And these do not combine them:
- Libertinus Keyboard
- Libertinus Math
- Libertinus Mono
- Libertinus Serif Display
A question for you
You said you downloaded the fonts from GitHub - alerque/libertinus: The Libertinus font family · GitHub - I don’t see any mention of a “Captials” version of the font. Is this what you mean when you say that you cannot find any capitals? Where did you read that a capitals version should exist?