![]() |
#1 |
Member
![]() ![]() Posts: 14
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? |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,702
Karma: 134319572
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 11:40 AM. |
|
![]() |
![]() |
![]() |
#3 |
Member
![]() ![]() Posts: 14
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
|
![]() |
![]() |
![]() |
#4 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,702
Karma: 134319572
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. |
|
![]() |
![]() |
![]() |
#5 | |
Member
![]() ![]() Posts: 14
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> |
|
![]() |
![]() |
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,702
Karma: 134319572
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.
|
![]() |
![]() |
![]() |
#7 |
Member
![]() ![]() Posts: 14
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!
|
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,702
Karma: 134319572
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.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
no small caps? | fbrzvnrnd | KOReader | 34 | 03-13-2021 06:21 AM |
{font-size: 75%;} to substitute SMALL CAPS | chaot | Workshop | 18 | 02-10-2017 05:03 PM |
Kobo Sideloaded Font Weights | MRC01 | Kobo Reader | 7 | 10-29-2016 02:07 PM |
small caps | yuxi_kelly | ePub | 20 | 06-05-2011 12:04 AM |
DR1000 FW2.0 - RC2 - font-variant: small-caps | ThR | iRex | 0 | 06-29-2010 05:31 AM |