Closed bennyboer closed 3 years ago
For all font-family properties you can not specify the font family name as well as the URL of where to find a bunch of font files (or just one).
font-family: Playfair Display:url(res/fonts/playfair_display); is an example.
document {
font-family: Playfair Display:url(res/fonts/playfair_display); // When specifying a folder, all the included font files will be added to the Thaw font manager (the preferred font-variant from the font-variant property will be used)
inline-code-font-family: Consolas;
line-number-font-family: Playfair Display:url(res/fonts/playfair_display/PlayfairDisplay-Medium.ttf); // Specify a file directly thus overriding the preferred font variant set by the font-variant property
}
I want to add a custom font file in the style file: