Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-23-2014, 02:36 AM   #256
Stunatra
Enthusiast
Stunatra began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Jun 2013
Device: Kindle Paperwhite
Quote:
Originally Posted by mandy314 View Post
Perhaps many Kindle owners (not necesarely MR-members) tried the USE_ALT_FONT hack, had a cluttered Font Menu, used a custom font which didn't looked good on an e-ink device - and they contacted Amazon support. Given a good number of complaints I can see Amazon being motivated to "fix" the USE_ALT_FONT issue
That is just AWFUL! A bunch of ignorant turds have to ruin it for the rest of us. I bet that's just what happened too.
Stunatra is offline   Reply With Quote
Old 10-19-2014, 07:05 AM   #257
mandy314
Connoisseur
mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.
 
Posts: 71
Karma: 200092
Join Date: Mar 2014
Device: kindle pw1
Ok - this would only make sense with pre 5.4 FW on the PW1 (or older devices) - but wouldn't it be nice to map custom fonts to generic font families?

Generic font-families in CSS are
- serif - mapped to Caecilia
- sans-serif - mapped to Helvetica
- cursive - no mapping
- fantasy - no mapping
- monospace - mapped to KindleBlackboxC

So - afaik - not all generic font-families are supported on the Kindle.
Lately in well-done ebooks the use of generic font-families seems more common. So you may have chapter headings with font-family="some embedded font",sans-serif, the main text with font-family=serif and some handwritten letters with font-family="a second embedded font",cursive.
When you select Publisher Font with such a book you get the embedded font for the headings, Caecilia (arghh) for the main text and the second embedded font for the letters. When you de-select Publisher Font you get the whole text with the font ticked (font-family is ignored).

I tried to add alias sections to the alternate.conf from the "fontconfig"-hack - but that didn't work for me. I'm not able to do all the usb-networking and scripting. But I can see browser-like settings for the mapping as a good thing. Perhaps even a hack for the default font the Kindle falls back on if - this would be Helvetica with FW 5.3.9 - there isn't a font-family set for the main text in the above mentioned example and Publisher Font is selected.

Sadly can't do much more than make the suggestion.
mandy314 is offline   Reply With Quote
Advert
Old 10-19-2014, 07:09 AM   #258
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@mandy314: Unfortunately, the KF8 renderer works in mysterious ways, so while doing this on fontconfig's side would be trivial (since it's basically what we're already doing for the supported families), there's no guarantee the renderer would actually honor everything as intended.
NiLuJe is offline   Reply With Quote
Old 10-19-2014, 08:23 AM   #259
mandy314
Connoisseur
mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.
 
Posts: 71
Karma: 200092
Join Date: Mar 2014
Device: kindle pw1
@NiLuJe
Thanks for the quick reply!
As I said - alias sections in alternate.conf don't work. And I assumed that the Kindle local.conf is parsed after the alternate.conf. But alas ..

For those who have books with nice embedded fonts for headings or other special text parts and with no embedded font or with generic font-family settings for the main text I see two options to get the most out of it (with PW1/FW 5.3.9):

(1) remove all embedded fonts and add generic terms (like sans-serif, monospace etc) to the font-family for the special text elements
With this you can select your font and still have monospaced chapter headings for instance.

(2) add a font-family="Your fav font" at body level and make sure the setting isn't overridden on p level - use the family name as shown with the Kindle Aa Menu
With this you can select Publisher Font, get all parts with embedded fonts and still have the main text rendered with your fav font.
mandy314 is offline   Reply With Quote
Old 10-19-2014, 09:18 AM   #260
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@mandy314: Keep in mind that I was talking about my own stuff. I don't remember how bulletproof the fontconfig KUAL extension is, so YMMV if you're using that. The appropriate FC_DEBUG value & fc-match help figure these things out on fontconfig's side, but that leaves the mysteries of how the KF8 renderer actually honors those...

As for your examples, the mixed Publisher fonts thing can be handled safely with the fonts hack. Usually, the fallback is serif, and overriding that is safe. As for sans, the fallback override usually takes care of it.

Last edited by NiLuJe; 10-19-2014 at 01:54 PM.
NiLuJe is offline   Reply With Quote
Advert
Old 10-25-2014, 03:13 AM   #261
mandy314
Connoisseur
mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.mandy314 ought to be getting tired of karma fortunes by now.
 
Posts: 71
Karma: 200092
Join Date: Mar 2014
Device: kindle pw1
@NiJuLe (and thanks again)
FYI
After looking at your sources I got the font mapping working (with this in the alternate.cfg):

Code:
  <match target="pattern">
    <test name="family"><string>serif</string></test>
    <edit name="family" mode="prepend" binding="strong"><string>MyFavSerifFont</string></edit>
  </match>
  <match target="pattern">
    <test name="family"><string>sans-serif</string></test>
    <edit name="family" mode="prepend" binding="strong"><string>MyFavSans-SerifFont</string></edit>
  </match>
The "override" of sans-serif affects the UI of course - but it looks good (better than with Futura) and I haven't encountered adverse effects yet.
The "override" of the fallback font I found in your sources I'm reluctant to use - easier to edit the offending ebook.
But I failed to persuade the Kindle to accept a binding/mapping of the font-families "cursive" / "fantasy" to any font - so another one for Calibre's EditBook feature.
mandy314 is offline   Reply With Quote
Old 10-25-2014, 08:42 AM   #262
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@mandy314: If your device crashes when in USBMS mode, at least you'll know why ;p.

Yup, no idea how the KF8 renderer resolves those fancy family names...
NiLuJe is offline   Reply With Quote
Old 10-31-2014, 03:01 PM   #263
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Finally released v0.9.N, which, besides supporting the 'new' PW2 models, sports quite a few bugfixes and a few new features .

Last edited by NiLuJe; 10-31-2014 at 05:18 PM.
NiLuJe is offline   Reply With Quote
Old 10-31-2014, 04:11 PM   #264
pghaworth
Fervent Pleasure Seeker
pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.
 
pghaworth's Avatar
 
Posts: 1,224
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
pghaworth is offline   Reply With Quote
Old 11-01-2014, 10:37 AM   #265
April_7th
Connoisseur
April_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongue
 
Posts: 63
Karma: 22712
Join Date: Jan 2013
Device: PW2
Quote:
Originally Posted by NiLuJe View Post
Finally released v0.9.N, which, besides supporting the 'new' PW2 models, sports quite a few bugfixes and a few new features .
Does it mean that the custom fonts will show in Aa menu on PW2 5.4.5.1?
April_7th is offline   Reply With Quote
Old 11-01-2014, 10:41 AM   #266
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@April_7th: No, it simply means that the hack is as functional as possible on those devices, like on the rest of the older PW2 variants.
NiLuJe is offline   Reply With Quote
Old 11-01-2014, 10:45 AM   #267
April_7th
Connoisseur
April_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongueApril_7th can tie a knot in a cherry stem with his or her tongue
 
Posts: 63
Karma: 22712
Join Date: Jan 2013
Device: PW2
Thank you
April_7th is offline   Reply With Quote
Old 11-05-2014, 08:18 AM   #268
caerphoto
Junior Member
caerphoto began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2014
Device: Kindle PW2
Unhappy No custom fonts listed :(

Hello!

I'm a bit of a noob at all of this. I just want to try some nicer fonts on my PW2, and things seemed to be going ok with the jailbreaking, KUAL etc. until I hit a wall.

Basically, I've put some fonts into linkfonts/fonts, but they don't show up in the Font Overrides → [type] → Custom list. That list is just blank apart from the '/' options. If I go into the Amazon menu instead of Custom, I can see all the Amazon fonts there. I don't see any error when I use the 'Populate this menu' item.

If it's any help, the font I'm trying to use is Crimson Text. I'm using a Mac and I'm familiar with command line stuff.

Any ideas what I might be doing wrong?
caerphoto is offline   Reply With Quote
Old 11-05-2014, 08:29 AM   #269
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@caerphoto: Update the fontconfig cache first (there's a button in the Fonts meny, cf. the first post).
NiLuJe is offline   Reply With Quote
Old 11-05-2014, 08:51 AM   #270
caerphoto
Junior Member
caerphoto began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2014
Device: Kindle PW2
I've tried that, still no luck I even checked the permissions on the font files in case they were set to non-readable or something, but no luck there either.
caerphoto is offline   Reply With Quote
Reply

Tags
fontconfig, fonts, freetype, hacks, paperwhite, touch


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K5 FW 5.x ScreenSavers Hack NiLuJe Kindle Developer's Corner 3036 06-23-2025 03:25 AM
[Kindle Touch] Font Hack ixtab Kindle Developer's Corner 508 05-18-2020 12:41 PM
Hacks Kindle Touch Registration Hack codeisnightmare Amazon Kindle 15 10-19-2014 09:17 PM
Touch Can I get Kindle Touch Fonts On Nook Touch? tanteoma Barnes & Noble NOOK 5 05-17-2012 09:02 PM
Font Hack for Kindle Touch? Sassapphras Kindle Developer's Corner 1 02-12-2012 09:05 PM


All times are GMT -4. The time now is 09:29 AM.


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