03-10-2021, 06:36 AM | #1 |
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
no small caps?
I'm reading an ebook with small caps text, but KOReader fails to render it.
It is a bug or I'm missing something? |
03-10-2021, 06:45 AM | #2 | |
Resident Curmudgeon
Posts: 73,987
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
font-variant: small-caps; |
|
Advert | |
|
03-10-2021, 07:02 AM | #3 | |||
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Mh, weird. If I choose to turn off 'fonts embedded' KOReader show me the text in small caps. If I turn on 'fonts embedded', KOReader show me the text in lowercase. In HTML I have:
Quote:
Quote:
Quote:
|
|||
03-10-2021, 12:04 PM | #4 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I assume this simply means that the embedded font has borked/trimmed OpenType features.
|
03-10-2021, 01:14 PM | #5 |
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
|
Advert | |
|
03-10-2021, 01:32 PM | #6 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I wouldn't necessarily be sure about that. Adobe has the best font engine in the business, it might be doing some black magic to coerce features out of a funky font .
More interesting is your "other readers" comment: which ones? ;o). Another train of thought: is the embedded font actually detected *at all*? Or is it falling back to a fallback font? Last edited by NiLuJe; 03-10-2021 at 01:34 PM. |
03-10-2021, 01:51 PM | #7 | |||
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Quote:
Quote:
Quote:
UPDATE: also Moon+Reader and ReadEra fail to show the small caps... Last edited by fbrzvnrnd; 03-10-2021 at 02:16 PM. |
|||
03-10-2021, 03:00 PM | #8 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Hard to say more without having the font on-hand to take a look at its feature table, though.
One thing you can try is ripping the font out of the ePub and installing it as a KOreader font, to see if the behavior is specific to how embedded fonts are loaded or if it's specifically an issue with this font |
03-10-2021, 04:19 PM | #9 | |
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Quote:
It seems to me a KOReader bug: the CSS states to use Simoncini with small caps or fallback to Serif with small caps if Simoncini with small caps is not present. KOReader uses Simoncini without small caps and does not fallback to Serif with small caps. |
|
03-10-2021, 04:46 PM | #10 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I'm indeed fairly confident that a missing `font-variant` doesn't trip a fallback codepath in CRe (as opposed to a missing glyph).
Our resident CRe wizard @poire-z will probably chime it at one point to say how feasible something like that would be . (Or, more generically, if it even makes sense and/or what the actual specs say about the canonical behavior (if there is one) in such an instance ). |
03-11-2021, 02:51 AM | #11 | |
Fanatic
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Quote:
|
|
03-11-2021, 03:16 AM | #12 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
To learn about the open-type features of any font, I found the following site very useful: https://wakamaifondue.com/ |
03-11-2021, 10:35 AM | #13 | |
Resident Curmudgeon
Posts: 73,987
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
03-11-2021, 10:40 AM | #14 |
Resident Curmudgeon
Posts: 73,987
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Simoncini Garamond Std does not support small caps. So the solution is to use simulated small caps.
Code:
span.CharOverride-28 { font-family: "Simoncini Garamond Std", serif; font-size: 0.8333em; } Last edited by JSWolf; 03-11-2021 at 10:44 AM. |
03-11-2021, 11:20 AM | #15 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
... and apply that style only to the "small" caps, i.e. not to large caps, not to spaces, not to punctutation...
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Small caps | JLius | ePub | 10 | 06-09-2014 01:37 AM |
Small caps | Notjohn | Sigil | 9 | 02-23-2013 10:19 AM |
Small Caps | djulian | Kindle Formats | 2 | 04-05-2012 08:48 AM |
small caps | yuxi_kelly | ePub | 20 | 06-05-2011 12:04 AM |