MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   KOReader (https://www.mobileread.com/forums/forumdisplay.php?f=276)
-   -   font-variant display (https://www.mobileread.com/forums/showthread.php?t=340347)

roger64 06-29-2021 10:41 PM

font-variant display
 
2 Attachment(s)
Hi

This is a minor display question. I'll ask it on MR first.

On this attached scrambled ePub3, I have used open-type "font-variant:small-caps" for the two following styles Heading and Subtitle (see chapitre 4.xhtml).

I also used "font-variant:normal" for a span within these styles (see styles.css).

Code:

.Heading span {
  display: block;
  margin-top: 0.25em;
  font-size: 0.85em;
  font-style: italic;
  font-variant: normal;
  color: #585858;
}
.Subtitle span {
  display: block;
  margin-top: 0.25em;
  font-size: 0.9em;
  font-family: LinLibertineG30;
  font-style: italic;
  font-variant: normal;
}

The resulting display with Calibre and Sigil are OK (see screenshot)
With Koreader, I get italic with small-caps which is not intended.

Maybe my code is wrong, maybe Koreader is wrong... Who knows the answer? If Koreader is wrong, I'll report it on GitHub.

mergen3107 06-29-2021 11:38 PM

You have font-style: italic in the spans. Maybe that’s why

roger64 06-30-2021 07:54 AM

It's correct CSS though.

So, I'll report to GitHub.

roger64 07-02-2021 09:24 PM

For those interested, a follow-up here


All times are GMT -4. The time now is 09:08 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.