05-22-2024, 12:31 PM | #1 |
Enthusiast
Posts: 41
Karma: 190
Join Date: Sep 2023
Device: Kobo Libra 2
|
Kobo Sideloaded Small Caps Font
Hello! I’ve adjusted my sideloaded fonts (for regular, italics, bold, italics bold) to follow this format here (https://wiki.mobileread.com/wiki/Kob...play_Correctly), and I have the font family for small caps and small caps bold. Normally it wouldn’t bother me, but some of my eBooks will have the font-variant: small-caps and the font doesn’t match the rest of the book.
Does anyone know what naming scheme Kobo requires for small caps or if it supports it at all? |
05-22-2024, 12:34 PM | #2 | |
Resident Curmudgeon
Posts: 76,433
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Last edited by JSWolf; 05-22-2024 at 12:40 PM. |
|
Advert | |
|
05-22-2024, 02:24 PM | #3 |
Enthusiast
Posts: 41
Karma: 190
Join Date: Sep 2023
Device: Kobo Libra 2
|
The file is already in the kepub format. I've attached a screenshot of what the small caps looks like (right), and what I'd expect it to look like (left). The size should be bigger, bolder, with more a bit more character spacing
|
05-22-2024, 02:57 PM | #4 | |
Resident Curmudgeon
Posts: 76,433
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
.smallcaps { font-variant: small-caps; text-transform : lowercase; ; As for the small-cap font you installed in the fonts directory. it won't work for KePub. |
|
05-22-2024, 07:52 PM | #5 | |
Enthusiast
Posts: 41
Karma: 190
Join Date: Sep 2023
Device: Kobo Libra 2
|
Quote:
The original book had the css settings as: Code:
.smallcaps { font-variant: small-caps; text-transform: uppercase; } Here's a snippet of the book's text & the code. The classes are being applied correctly Code:
<p class="body-text">Flags whipped and snapped in the breeze. <span class="smallcaps">Unity</span>, one declared in plain, black thread. <span class="smallcaps">Strength</span>. The others bore the insignia of the revolution, the same one that had been chalked on Jack’s dance floor: the sun with its searing rays.</p> |
|
Advert | |
|
05-22-2024, 07:56 PM | #6 |
Resident Curmudgeon
Posts: 76,433
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The next thing to try is to choose a different font. Maybe it's an issue with the font you are using. I would try some of the fonts that come with the firmware.
|
05-22-2024, 11:16 PM | #7 |
Enthusiast
Posts: 41
Karma: 190
Join Date: Sep 2023
Device: Kobo Libra 2
|
I like this font enough that I'll deal with it. It's not like smallcaps appear that often anyway. Thanks anyway!
|
05-23-2024, 06:14 AM | #8 |
Resident Curmudgeon
Posts: 76,433
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
There is one more solution. You can stop reading in KePub and read in ePub. If you read in ePub, you can access the fonts from outside of the ePub. I'll have to dig up the code for this and make sure it still works.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
no small caps? | fbrzvnrnd | KOReader | 34 | 03-13-2021 07:21 AM |
{font-size: 75%;} to substitute SMALL CAPS | chaot | Workshop | 18 | 02-10-2017 06:03 PM |
Kobo Sideloaded Font Weights | MRC01 | Kobo Reader | 7 | 10-29-2016 03:07 PM |
small caps | yuxi_kelly | ePub | 20 | 06-05-2011 01:04 AM |
DR1000 FW2.0 - RC2 - font-variant: small-caps | ThR | iRex | 0 | 06-29-2010 06:31 AM |