Thread: Variable fonts
View Single Post
Old 05-17-2024, 06:59 PM   #3
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,622
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Thanks @RbnJrg
I have tried both the normal "Bold" and a weight number. While both work in the Editor viewer, they don't show in the Libra 2.

I noticed that when I added @font-face in the stylesheet, Calibre automatically defaulted to the "light" weight.

PHP Code:
@font-face {
  
srcurl(OEBPS/Quicksand-Light.otf);
  
font-family"Quicksand Light";
  
font-weight300;
  
font-stylenormal;
  
font-stretchnormal;
  } 
But if I try and edit the font-weight to "bold" or 800, then the checkers in Calibre have a fit and it still shows as Light in Libra 2.

I'll try the !important suffix.
Karellen is offline   Reply With Quote