View Single Post
Old 06-07-2025, 01:22 PM   #1
Slevin#7
Connoisseur
Slevin#7 began at the beginning.
 
Posts: 69
Karma: 10
Join Date: May 2025
Device: iPad
Calibre Shows Pseudo-Italic for Regular Custom Font

I have encountered a weird issue on an older Calibre ebook viewer for windows (v3.48):

When I embed a font family like Literata, Calibre displays all regular text in pseudo-italic, meaning it skews the font by itself. Bizarrely enough, Calibre displays intentional italic correctly, using the correct font-src.

It doesn't help to explicitly tell the font-style (which anyways should get inherited properly), it always displays regular text in a pseudo-italic style. I've tried other fonts as well (Lora, EBGaramond), Calibre always does its weird thing.

Since I'm pretty sure someone wants to see the CSS code, here it comes:

Code:
@font-face {
  font-family: "Lora";
  font-weight: normal;
  font-style: normal;
  src: url("../fonts/Lora-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Lora";
  font-weight: normal;
  font-style: italic;
  src: url("../fonts/Lora-Italic.ttf") format("truetype");
}

@font-face {
  font-family: "Lora";
  font-weight: bold;
  font-style: normal;
  src: url("../fonts/Lora-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Lora";
  font-weight: bold;
  font-style: italic;
  src: url("../fonts/Lora-BoldItalic.ttf") format("truetype");
}

body {
  font-family: "Lora", serif;
}
Does anybody know why this is?

Many thanks in advance
Slevin#7 is offline   Reply With Quote