|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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;
}
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. |
|
|
|
|
|
#2 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,558
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
You have font-style: italic in the spans. Maybe that’s why
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
It's correct CSS though.
So, I'll report to GitHub. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Alternate glyph support (font-variant-alternates) | momoha | ePub | 39 | 04-21-2020 09:57 AM |
| Font display on Shine | BobC | Tolino | 1 | 06-16-2019 08:39 PM |
| Font display 2019.1.1 | BobC | KOReader | 1 | 01-13-2019 01:59 PM |
| Strange display issue with a certain font | bfollowell | Sigil | 4 | 02-15-2014 09:18 AM |
| DR1000 FW2.0 - RC2 - font-variant: small-caps | ThR | iRex | 0 | 06-29-2010 06:31 AM |