Thread: Variable fonts
View Single Post
Old 05-17-2024, 05:17 PM   #2
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,830
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Karellen View Post
I am attempting to embed the Quicksand font into an epub3 file, to use on headings and the title page.
https://fonts.google.com/specimen/Quicksand

I note that it is a "Variable" font which contains all the font styles in a single file.

When using it in the epub3 on a Libra2, the styling defaults to "Light" instead of the needed "Bold" and I cannot access any heavier modes.

Is this because the Libra2 does not handle variable fonts?
Surprisingly I couldn't find an answer here on the forum or the fonts wiki page.
Not all devices support variable fonts. But to set the bold style, try:

font-weight: 800;

If you want normal weight, try:

font-weight: 400;

And if you want to set a "light" weight, then try:

font-weight: 300;

Maybe there is a font definition that is overwritting your new style. If the above doesn't work, try adding the !important sufix.

Kobo Libra should support variable fonts; try with .kepub extension instead of .epub.

Last edited by RbnJrg; 05-17-2024 at 05:20 PM.
RbnJrg is offline   Reply With Quote