Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
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:	169
Size:	29.9 KB
ID:	187934  
Attached Files
File Type: epub scrambled.epub (824.8 KB, 131 views)
roger64 is offline   Reply With Quote
Old 06-29-2021, 10:38 PM   #2
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,506
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
You have font-style: italic in the spans. Maybe that’s why
mergen3107 is offline   Reply With Quote
Advert
Old 06-30-2021, 06:54 AM   #3
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)
It's correct CSS though.

So, I'll report to GitHub.
roger64 is offline   Reply With Quote
Old 07-02-2021, 08:24 PM   #4
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)
For those interested, a follow-up here
roger64 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternate glyph support (font-variant-alternates) momoha ePub 39 04-21-2020 08:57 AM
Font display on Shine BobC Tolino 1 06-16-2019 07:39 PM
Font display 2019.1.1 BobC KOReader 1 01-13-2019 12:59 PM
Strange display issue with a certain font bfollowell Sigil 4 02-15-2014 08:18 AM
DR1000 FW2.0 - RC2 - font-variant: small-caps ThR iRex 0 06-29-2010 05:31 AM


All times are GMT -4. The time now is 11:08 AM.


MobileRead.com is a privately owned, operated and funded community.