11-30-2023, 05:02 AM | #1 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
A subsetting question
Using calibre 7.1. linux.
When subsetting my usual fonts, the reporting little window under each of the three fonts tells me: Code:
FFTM NOT subset; don't know how to subset; dropped However the downside is that I lose the display of open-type properties (like old numerotation, etc.) in the subset. Calibre 7.1. has been installed using the linux script provided by Calibre. Maybe some fonttools software is badly installed? I have python-fonttools 4.44.3-1 installed. |
11-30-2023, 06:59 AM | #2 |
creator of calibre
Posts: 44,145
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre comes with its own copy of fonttools assuming you are using the official binaries. fftm is a fontforge timestamp table, it has no connection to opentype features. https://fontforge.org/docs/techref/TrueOpenTables.html
|
11-30-2023, 08:08 AM | #3 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thanks for your reply.
I use the binaries provided by the Calibre Linux script, currently at 7.1. In the joint png screenshot you can see the error message I am getting when I ask Calibre to make a subset. In the zip, I provided two examples of the same ePub3. This book was published by me on MR in 2018 and I slightly modify it for this purpose. As there are nineteenth century letters, the use of an old numerotation makes sense. - The first one is before subsetting, where you can see, for example, that the Date at the beginning of each chapter uses the old numerotation (open-type). - The second one named (calibre-subset) is after subsetting where you can see that the Date at the beginning of each chapter does not use anymore the old numerotation. So this error message seems to have an impact, even if indirect, on the open-type display. Last edited by roger64; 11-30-2023 at 08:22 AM. |
11-30-2023, 08:18 AM | #4 |
creator of calibre
Posts: 44,145
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The error message has no connection. Subsetting simply doesn't preserve open type feature variations. Maybe someday I might add support but its not a priority for me, patches welcome.
|
12-05-2023, 07:21 AM | #5 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
I checked again. I reinstalled Calibre 7.1. (Archlinux) using the Calibre Linux custom install script and the terminal reported no problem during install. I remember using Calibre subsetting during these last years. At least from 2021, it did save open-type variations after subsetting. But the size of the subset was bigger than today say roughly 15%. About one or two years ago, the Calibre subsetting process was made more efficient, reducing the subset to about 5%. I noticed at that time during calibre install on my Linux distro a dependency problem with fonttools. So I reverted to the Calibre linux install script. Since that time however, the calibre subset does not save anymore the open-type variations. Another install of Calibre reports the same error message as me and the same faulty results. I would like to know how to get rid of this message which appears when subsetting even when I perform a regular Calibre script install. Patches You say that patches are welcome. The current version of fonttools (the Archlinux package is python-fonttools 4.44.3-1) does indeed preserve open-type variations so there could be some benefit to use it. Here is a test case to illustrate my point. I added enclosed in this zip a version obtained with the Sigil subset plugin which preserves the open-type variations. It uses exclusively the latest fonttools. Note: for users of this forum, to see how open-type variations are preserved, just look for the display of the Date paragraph style which you'll find at the beginning of each chapter. Last edited by roger64; 12-05-2023 at 08:40 AM. Reason: Note |
12-27-2023, 07:25 PM | #6 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
It seems that, despite some interest about it, this question about subsetting not preserving open type feature variations will stay unresolved. I note that the Calibre editor issues a warning before sorting the style rules (see attachment-in French sorry). Maybe, for the time being and as it is not an obvious behaviour, would it be useful to add such a kind of warning before launching the tool "subsetting of included fonts" which replaces existing fonts: "Are you sure? Subsetting does not preserve open type feature variations." Last edited by roger64; 12-27-2023 at 10:15 PM. |
12-27-2023, 10:55 PM | #7 |
creator of calibre
Posts: 44,145
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
12-28-2023, 02:19 AM | #8 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thank you.
|
12-28-2023, 06:18 AM | #9 | |
Resident Curmudgeon
Posts: 75,047
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
01-02-2024, 12:03 PM | #10 | |
Evangelist
Posts: 423
Karma: 6913952
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe
|
Quote:
If a font has more complete OpenType features tables, then you really want them included. They don't add much to the size of the font, but will make the character subset display much better, which is what you want if you are creating books for arbitrary users (i.e., sale or other distribution). If you are creating books only for yourself, then don't embed fonts with a full set of OpenType features, or remove the features tables from the font before embedding. |
|
01-02-2024, 01:03 PM | #11 | |
Resident Curmudgeon
Posts: 75,047
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Having to edit the font is not something we should have to do when all we need is a check box to decide which way to subset. Also, finding a different font with no OpenType features is also not something we should need to do when a checkbox is al we need. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About subsetting | roger64 | Editor | 6 | 05-30-2023 02:11 AM |
Question about Calibre font subsetting | GrannyGrump | Calibre | 2 | 12-23-2014 12:07 AM |
Problem with font subsetting | grumbles | Editor | 17 | 06-20-2014 02:35 PM |
Bug in font subsetting | JSWolf | Calibre | 9 | 01-17-2013 09:46 AM |
ePub Font Subsetting | Cygfrydd | ePub | 2 | 08-17-2010 08:53 AM |