View Single Post
Old 06-07-2025, 02:41 PM   #3
Slevin#7
Connoisseur
Slevin#7 began at the beginning.
 
Posts: 72
Karma: 10
Join Date: May 2025
Device: iPad
Well, I've followed your advice to strip the format declaration (although it's recommended by various sources), but unfortunately without any change.

The CSS is stripped down to this (pretty similar to the code above):

Code:
@charset "utf-8";

@font-face {
  font-family: "literata-custom";
  font-weight: normal;
  font-style: normal;
  src: url("../fonts/Literata-Regular.ttf");
}

@font-face {
  font-family: "literata-custom";
  font-weight: normal;
  font-style: italic;
  src: url("../fonts/Literata-Italic.ttf");
}

@font-face {
  font-family: "literata-custom";
  font-weight: bold;
  font-style: normal;
  src: url("../fonts/Literata-Bold.ttf");
}

@font-face {
  font-family: "literata-custom";
  font-weight: bold;
  font-style: italic;
  src: url("../fonts/Literata-BoldItalic.ttf");
}

body {
  font-family: "literata-custom", serif;
  font-size: 100%;
  font-weight: normal;
  font-style: normal;
}
And the HTML of a sample page:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en" lang="en">
<head>
  <meta charset="utf-8"/>
  <title>Bubbles DeVere</title>
  <link rel="stylesheet" type="text/css" href="../styles/styles.css"/>
</head>

<body>

  <p>Champagne! Champagne for everyone!</p>

</body>
</html>
You can't get much more blank, but it still shows pseudo-italic for the regular text. Since the Sigil preview shows the text as intended (regular) I assume that there's a problem with Calibre. I currently don't have any other version handy but v3.48 since I'm bound to that due to the current environment.

So my question is, whether this is a known Calibre bug dedicated to some specific versions, or is this a wider spreading issue concerning other readers as well?
Slevin#7 is offline   Reply With Quote