07-09-2016, 03:43 AM | #1 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Embolden -slightly- a font
Hi
Kobo implemented some years ago a very successful "Type Genius" feature. I do not use anymore a Kobo but I dream about emboldening slightly my font of choice. I tried it many times, without any success and so I have to read with another one. We can do it -say- with FontForge (Elements - Styles) then Change weight except that I do not manage to export any emboldened font. Ths is really frustrating. Could someone try it or give a detailed recipe on how to do it? It's an opensource font. The otf and ttf versions can be downloaded from here. I would appreciate having a modified normal and italic versions. http://www.linuxlibertine.org/index.php?id=1&L=1 |
07-09-2016, 04:42 AM | #2 |
Resident Curmudgeon
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why not try the semibold versions and see if they have enough weight for you?
|
07-09-2016, 10:28 AM | #3 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Semi-bold is way too bold.
I'd like to embolden it slightly, about the way you did for Charis. |
07-09-2016, 03:17 PM | #4 |
Resident Curmudgeon
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
07-09-2016, 04:36 PM | #5 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
|
07-09-2016, 09:05 PM | #6 |
Guru
Posts: 856
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
I may have a tool that could be useful for you roger64, if you wish to give it a go.
Attached is my WIP tool which has a basic frond end to quickly perform some font related tasks, including enboldening fonts. The tool basically calls fontforge to perform the actual changes. To run it, you need a recent build of fontforge (late 2015 or younger). If you have Calibre installed, you don't need anything else. Otherwise you will also need to download Python 2.7/3.x, and PyQt. To run it using calibre, at the command prompt, run: Code:
calibre-debug path/to/ReadifyFont-Qt.py Note that this is a WiP build that I haven't worked on in months, and remains unreleased, so there will probably be some bugs. There is no guarantee that the preview functionality works properly, and that feature isn't really complete anyway. To use it, load up to four files (regular, italic, bold, bold italic), check the font variant in the drop down box matches the font file loaded, Give the font a new name, choose options related to kerning, PANOSE etc, and choose how much to embolden a font by. I personally like using 12-15. 50 is considered "bold". Adjust it to your personal taste. Also note, that only regular and italic fonts will be emboldened. The tool will not modify the weights of bold or bold italic, so you can safely load all variants to give them consistent names and options. EDIT: Updated the zip file to fix an error that meant TTF files couldn't be loaded. Last edited by sherman; 07-10-2016 at 08:01 PM. |
07-10-2016, 01:24 AM | #7 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
@sherman
Of course, I will try it. Thanks. I am an Arch Linux user. Up to now (even with the Windows software FontCreator, but also with FontForge) I manage to bolden all the glyphs of one font, then it seems like all is saved all right... but when I open the font, nothing really changed. Last edited by roger64; 07-10-2016 at 01:31 AM. |
07-10-2016, 01:34 AM | #8 |
Guru
Posts: 856
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
The tool SHOULD work under Arch, although I cannot guarantee it. I tried to make sure I used no OS specific code.
Again, there is a reason I have not made a public release of the tool, and that is because I am not confident it is robust enough to do so. |
07-11-2016, 02:19 AM | #9 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
I used the latest version of your script (should you give it a version number?). On Arch Linux I had to install the python-pyqt5 package on top of the already installed Python packages. This is to report success with a Linux Libertine.ttf font family where only the regular and italic fonts have been modified. I added them to Koreader (to replace the old ones) on my PW3 and checked that these two fonts have indeed been slightly boldened (+8). Once I put the terminal on the path, to start the GUI I used Code:
fontforge -script ReadifyFont-Qt.py Thank you very much for such a nice -and easy- tool. Last edited by roger64; 07-11-2016 at 03:00 AM. |
07-11-2016, 02:27 AM | #10 |
Guru
Posts: 856
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
I haven't given it a version number yet, because I don't feel it's quite ready for release just yet.
I'm glad you've found it useful though! I'm a bit surprised you can launch the GUI with the fontforge binary TBH. On windows it doesn't work, as it can't use PyQt5. So for anybody else reading, I advise launching the GUI with python, and not fontforge. The CLI script on the other hand... |
07-11-2016, 03:40 AM | #11 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
The luck to use a recent Arch version:
Code:
[roger@anterg ~]$ fontforge -v Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE. Based on sources from 13:54 TAHT 6-May-2016-ML-D. Based on source from git with hash: no xdefs_filename! TESTING: getPixmapDir:/usr/share/fontforge/pixmaps TESTING: getShareDir:/usr/share/fontforge TESTING: GResourceProgramDir:/usr/bin trying default theme:/usr/share/fontforge/pixmaps/resources fontforge 13:54 TAHT 6-May-2016 libfontforge 20160506 |
07-11-2016, 03:44 AM | #12 |
Guru
Posts: 856
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Note that if you don't want to bother with the GUI, you can also run the CLI script instead. The GUI is literally a wrapper for the CLI.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Slightly boldening a font using FontCreator | roger64 | Workshop | 0 | 12-24-2013 09:10 PM |
Can you embolden Mobi files directly? | slm | Calibre | 2 | 01-20-2011 02:40 PM |
Hi, I'm slightly off. | John Carroll | Introduce Yourself | 20 | 12-08-2010 11:19 AM |
Embolden font when rendering PDF | caritas | 0 | 10-25-2009 07:30 AM | |
slightly overwhelmed... | dnullify | Which one should I buy? | 19 | 02-10-2009 01:18 AM |