View Single Post
Old 06-29-2021, 09:41 PM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
font-variant display

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.
Attached Thumbnails
Click image for larger version

Name:	font-variant-calibre.png
Views:	170
Size:	29.9 KB
ID:	187934  
Attached Files
File Type: epub scrambled.epub (824.8 KB, 133 views)
roger64 is offline   Reply With Quote