01-18-2013, 04:15 PM | #1 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
FontShrinker - tool to subset a font
This program can create a subset of a font. You can choose to either input some text (or paste a whole book) and determine the unique characters. That should go quite fast (for example, HP4 takes about 1 sec on my laptop). You can also choose some sets of characters.
You can also just drop an ePUB on the application to shrink all the fonts in the ePUB according to the used glyphs. It only accepts TTF. It should run on x86, probably XP and up. Latest version can be downloaded from my site. Version 2.11 is located here. Last edited by Toxaris; 01-27-2015 at 04:17 PM. |
01-19-2013, 02:36 AM | #2 | |
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Gonna try this one right now. Hitch |
|
Advert | |
|
01-19-2013, 03:37 AM | #3 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Does it decode HTML entities ( , —)? Does it handle ligatures and other features (keep ligatures if all their components are in the subset, remove them otherwise)? Any chance of having a linux (or source code) version (maybe include it in Sigil and/or Calibre)?
|
01-19-2013, 08:38 AM | #4 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Yes, it can handle most HTML entities (or it should). However, you have to provide the characters to subset. You can easily copy/past from Sigil.
At the moment it does not read data. I might change that later, but that is quite a bit more complicated. As it is programmed in .NET, Linux is out of the question. |
01-19-2013, 12:39 PM | #8 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
01-19-2013, 01:09 PM | #9 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
01-19-2013, 02:08 PM | #10 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Well, this is the real executable (at least in a zip). Source code will not be distributed for now.
|
01-20-2013, 03:59 AM | #11 |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
OK, now I can answer: I doesn't work with Mono
I get the message: "The entry point method could not be loaded" Or maybe I don't know how to do it, as I've never used Mono before. It could be that I have to install some package or use some command line... With Wine the program does open, but it crashes when actually trying to create a subset. In case you are interested, you might have a look here, but I understand if you aren't |
01-20-2013, 05:26 AM | #12 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Not really, but I actually think it is not possible. The program is not that complicated right now and it uses a very specific module in .NET 4. I think that part is not ported by Mono right now. The rest is rather straightforward and should work. I guess the same applies for Wine...
As long as Mono does not port that particular dll, there is no way I can get it to work. I will keep an eye on Mono to see if there are any changes. |
01-20-2013, 10:26 AM | #13 |
Guru
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
I ran the MSI file in the zip and it did install it into my C:\ drive but it didn't generate an entry into my start menu or the desktop, I had to manually add it to my desktop.
You might want to modify the installer to do this as some people might think it failed to install. |
01-20-2013, 04:00 PM | #14 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I have updated the installer. It will create a desktop shortcut and the start menu items. For now I am unable to give an user selection, but will do that later.
Last edited by Toxaris; 01-21-2013 at 02:15 AM. |
01-22-2013, 02:12 AM | #15 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34978132
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Super! Would you like to be adopted?
After hearing about the problem with ligatures from Calibre subsetted fonts, I'm curious. Has anybody checked on whether this handles ligatures ok? Thank you Toxaris, you get ten gold stars. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Working on way to subset fonts for ePub/KF3 | Freeshadow | Workshop | 51 | 04-22-2013 04:18 PM |
Embedded font-subset sometimes fails | GrannyGrump | Sigil | 3 | 10-20-2012 09:47 AM |
group an ARBITRARY subset of records | RotAnal | Library Management | 6 | 10-09-2012 11:53 AM |
Kindle 1 Font Mod Tool v0.1 | lovebeta | Kindle Developer's Corner | 20 | 04-16-2012 03:06 PM |
Is there a tool to see the contents of an embedded font file (ttf)? | James_Wilde | ePub | 4 | 09-06-2010 03:53 PM |