Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 07-09-2016, 03:43 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,486
Karma: 2656791
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
roger64 is offline   Reply With Quote
Old 07-09-2016, 04:42 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 57,789
Karma: 52821107
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Why not try the semibold versions and see if they have enough weight for you?
JSWolf is offline   Reply With Quote
Advert
Old 07-09-2016, 10:28 AM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,486
Karma: 2656791
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.
roger64 is offline   Reply With Quote
Old 07-09-2016, 03:17 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 57,789
Karma: 52821107
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by roger64 View Post
Semi-bold is way too bold.

I'd like to embolden it slightly, about the way you did for Charis.
I can do it for you. Might not be until Monday though.
JSWolf is offline   Reply With Quote
Old 07-09-2016, 04:36 PM   #5
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,486
Karma: 2656791
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by JSWolf View Post
I can do it for you. Might not be until Monday though.
I would indeed be very grateful of you if you could do so.
I tried it, not continuously of course, but at repeated times for some years...
roger64 is offline   Reply With Quote
Advert
Old 07-09-2016, 09:05 PM   #6
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 604
Karma: 1223802
Join Date: Aug 2008
Location: Auckland - 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
Otherwise, with python and PyQt installed, you should be able to run the script directly.


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.
Attached Files
File Type: zip ReadifyFont-PyQtPort.zip (21.0 KB, 168 views)

Last edited by sherman; 07-10-2016 at 08:01 PM.
sherman is offline   Reply With Quote
Old 07-10-2016, 01:24 AM   #7
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,486
Karma: 2656791
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.
roger64 is offline   Reply With Quote
Old 07-10-2016, 01:34 AM   #8
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 604
Karma: 1223802
Join Date: Aug 2008
Location: Auckland - 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.
sherman is offline   Reply With Quote
Old 07-11-2016, 02:19 AM   #9
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,486
Karma: 2656791
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
This is only a first trial. I will try now other options and also to modify the .otf version.

Thank you very much for such a nice -and easy- tool.
Attached Thumbnails
Click image for larger version

Name:	Sélection_007.png
Views:	213
Size:	50.4 KB
ID:	150147  

Last edited by roger64; 07-11-2016 at 03:00 AM.
roger64 is offline   Reply With Quote
Old 07-11-2016, 02:27 AM   #10
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 604
Karma: 1223802
Join Date: Aug 2008
Location: Auckland - 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...
sherman is offline   Reply With Quote
Old 07-11-2016, 03:40 AM   #11
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,486
Karma: 2656791
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
roger64 is offline   Reply With Quote
Old 07-11-2016, 03:44 AM   #12
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 604
Karma: 1223802
Join Date: Aug 2008
Location: Auckland - 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.
sherman is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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 PDF 0 10-25-2009 07:30 AM
slightly overwhelmed... dnullify Which one should I buy? 19 02-10-2009 01:18 AM


All times are GMT -4. The time now is 05:37 PM.


MobileRead.com is a privately owned, operated and funded community.