Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 12-05-2019, 03:21 PM   #91
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
OK, I'm not sure what I'm doing wrong, but I don't think the GUI is respecting my choices. I have kern table unchecked and Clear PANOSE checked, and my resulting file has a kern table and full PANOSE data. But it also complains about fontforge not being in my path, even though I do have its bin directory set in my environment variables (and so I use the prompt to point to it manually and it must be invoking fontforge in the end because it is indeed adding a legacy kern table to a font that previously had none so I think that works). Is this a Windows thing?

Good news is invoking on the command line works, so there's that. I just don't want to have to type in all those font names, lol.

Last edited by rtiangha; 12-05-2019 at 03:24 PM.
rtiangha is offline   Reply With Quote
Old 12-05-2019, 06:43 PM   #92
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 39,075
Karma: 153098470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by sherman View Post
Can you let me know what the error is? I just tried with a freshly installed FontForge, and I have Python 3.7 installed, and it showed the help fine.
I ran the command line for the help from a batch file and got the following output:

Code:
fontforge -script ReadifyFontCLI.py -h

Copyright (c) 2000-2019. 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.
 Version: 20190801
 Based on sources from 09:32 UTC  1-Aug-2019-ML-TtfDb-D-GDK3.
 Based on source from git with hash: 09e9429f765698a57ce1f7751977533f0ed2ec67
Traceback (most recent call last):
  File "ReadifyFontCLI.py", line 13, in <module>
    from helper import *
ModuleNotFoundError: No module named 'helper'
DNSB is offline   Reply With Quote
Advert
Old 12-05-2019, 08:10 PM   #93
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: 868
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by DNSB View Post
I ran the command line for the help from a batch file and got the following output:

Code:
fontforge -script ReadifyFontCLI.py -h

Copyright (c) 2000-2019. 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.
 Version: 20190801
 Based on sources from 09:32 UTC  1-Aug-2019-ML-TtfDb-D-GDK3.
 Based on source from git with hash: 09e9429f765698a57ce1f7751977533f0ed2ec67
Traceback (most recent call last):
  File "ReadifyFontCLI.py", line 13, in <module>
    from helper import *
ModuleNotFoundError: No module named 'helper'
The only thing I can think of is that the current directory is not set to where the ReadifyFont files can be found.
sherman is offline   Reply With Quote
Old 12-06-2019, 11:03 AM   #94
radius
Lector minore
radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.
 
radius's Avatar
 
Posts: 652
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Paperwhite Signature
Quote:
Originally Posted by sherman View Post
Hi all

This script is basically depreciated. I should probably make a note of that somewhere

I created a replacement called ReadifyFont, but I don't know if I ever really advertised it here on MobileRead
D'oh!

I'll try ReadifyFont. Thanks for the work you put into these!
radius is offline   Reply With Quote
Old 12-06-2019, 01:45 PM   #95
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 39,075
Karma: 153098470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by sherman View Post
The only thing I can think of is that the current directory is not set to where the ReadifyFont files can be found.
After I shutdown my laptop last night and then powered it back up today, the script works to display the help. Now to try testing font modifiction.

"We don't believe in miracles, we just depend on them."
DNSB is offline   Reply With Quote
Advert
Old 12-06-2019, 02:28 PM   #96
AnimalOfArt
Groupie
AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.
 
AnimalOfArt's Avatar
 
Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
Everything went fine for me using the latest FontForge version and python 3.8, at least the program did not crash but I don't know if it did what it you should have done.
So how can I check if PANOSE is removed and kern table is available or not?
AnimalOfArt is offline   Reply With Quote
Old 12-06-2019, 03:50 PM   #97
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Quote:
Originally Posted by AnimalOfArt View Post
Everything went fine for me using the latest FontForge version and python 3.8, at least the program did not crash but I don't know if it did what it you should have done.
So how can I check if PANOSE is removed and kern table is available or not?
Open the generated font in Fontforge and go to Element-> Font Info->OS/2->Panose. If all the values DON'T say 'Any' then it didn't clear anything.

For kern table, you can use https://fontdrop.info to compare the font before and after to see if it has a kern slider or not.
rtiangha is offline   Reply With Quote
Old 12-07-2019, 04:18 AM   #98
AnimalOfArt
Groupie
AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.
 
AnimalOfArt's Avatar
 
Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
Quote:
Originally Posted by rtiangha View Post
Open the generated font in Fontforge and go to Element-> Font Info->OS/2->Panose. If all the values DON'T say 'Any' then it didn't clear anything.

For kern table, you can use https://fontdrop.info to compare the font before and after to see if it has a kern slider or not.
Ok, thank you!
I did not checked fontdrop yet, so all I can is that it didn't clear Panose!

EDIT: Checked the generated font on fontdrop and it does have a kern slider although I unchecked it in your App

Last edited by AnimalOfArt; 12-07-2019 at 04:28 AM.
AnimalOfArt is offline   Reply With Quote
Old 12-07-2019, 12:45 PM   #99
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Quote:
Originally Posted by AnimalOfArt View Post
Ok, thank you!
I did not checked fontdrop yet, so all I can is that it didn't clear Panose!

EDIT: Checked the generated font on fontdrop and it does have a kern slider although I unchecked it in your App

So we got the same result then. At least I know it's not just me! The command line version seems to work, though. If you're desperate, try using that instead.
rtiangha is offline   Reply With Quote
Old 12-08-2019, 04:10 AM   #100
AnimalOfArt
Groupie
AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.
 
AnimalOfArt's Avatar
 
Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
Quote:
Originally Posted by rtiangha View Post
So we got the same result then. At least I know it's not just me! The command line version seems to work, though. If you're desperate, try using that instead.
You mean using the ReadifyFontCLI.py with fontforge on cmd should work?
AnimalOfArt is offline   Reply With Quote
Old 12-08-2019, 06:11 AM   #101
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Quote:
Originally Posted by AnimalOfArt View Post
You mean using the ReadifyFontCLI.py with fontforge on cmd should work?
It did for me. Less convenient, though.
rtiangha is offline   Reply With Quote
Old 12-08-2019, 06:31 PM   #102
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: 868
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Hi all, just to let you know, I'm working on an update to ReadifyFont (I'm basically re-writing it). I can't guarantee how long it will take, but it is happening...

I'm also planning on ditching PyQT5 in favor of tkinter. Not because I particularly like tkinter, but it is in the standard library, and on initial glance, the fontforge embedded python also includes it.
sherman is offline   Reply With Quote
Old 12-10-2019, 05:55 AM   #103
AnimalOfArt
Groupie
AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.AnimalOfArt ought to be getting tired of karma fortunes by now.
 
AnimalOfArt's Avatar
 
Posts: 175
Karma: 1044642
Join Date: Jun 2017
Device: changing frequently
Quote:
Originally Posted by sherman View Post
Hi all, just to let you know, I'm working on an update to ReadifyFont (I'm basically re-writing it). I can't guarantee how long it will take, but it is happening....
thank you very very much!
AnimalOfArt is offline   Reply With Quote
Old 12-13-2019, 08:23 PM   #104
Alanon
Connoisseur
Alanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watch
 
Alanon's Avatar
 
Posts: 76
Karma: 10742
Join Date: Jul 2017
Location: Serbia
Device: Kobo Aura One
I play around with fonts a lot, and sadly these tools stopped working for me or worked inconsistently. I believe the only variant that worked perfectly was an old version of the Koboify script paired with one specific (old) version of FontForge. Which is a shame, because a fully working tool would be a huge time-saver! (Fingers crossed for Sherman.)

In the end, the most reliable method is to install FontForge and learn its quirks. You can always check that PANOSE is properly cleared and that font names are the same. Depending on glyph size and the degree to which one emboldens fonts, it is possible to bork certain glyphs. FontForge will display a preview so you can actually fix the issues, or at least diminish them.
Alanon is offline   Reply With Quote
Old 04-18-2020, 12:11 AM   #105
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
A quick bit of necromancy to mention that some/most of this should also be doable via fontTools/gftools, if @sherman or anyone else were to want to take this up again.

This might be a cleaner/faster/less destructive/easier to embed approach than fontforge .

At a quick glance, fix-vertical-metrics can be used to tweak linegaps & other vertical metrics (yum, my favorites! ;D), while nametable-from-filename will deal with most of the OS/2 & TTF Names tables family/weight/style issues.
That mainly leaves the Panose stuff, list-panose should be a good start, but I'm pretty sure with a little bit of digging someone's already written something that can deal with it via fontTools.


(This was brought on by today's various shenanigans when testing Literata 3 ).

Last edited by NiLuJe; 04-18-2020 at 12:15 AM.
NiLuJe is offline   Reply With Quote
Reply

Tags
font


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add alternate fonts without replacing system fonts.(this time this is a guide) techiemonkey Kindle Developer's Corner 17 09-12-2012 04:55 PM
An Observation on Fonts - Improving readability by using *bold* versions of fonts nesler General Discussions 12 06-24-2012 12:33 PM
need the fonts in /usr/java/lib/fonts of kindle touch5.0.0 hanpal Kindle Developer's Corner 1 02-20-2012 10:40 AM
Troubleshooting need the fonts in /usr/java/lib/fonts of kindle touch5.0.0 hanpal Amazon Kindle 0 02-20-2012 08:51 AM
Touch Fonts question (special characters in stock and custom fonts) levil Kobo Reader 20 09-23-2011 01:51 PM


All times are GMT -4. The time now is 11:13 PM.


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