![]() |
#196 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
They started out using short-term contractors with very little experience in embedded Linux and with little or no planning and supervision for guidance. Or, at least that is the impression I have from following the Kindle development over the years. Amazon didn't invent that situation, it has been far too common in industry. ![]() Back 'in the day' - when I did this sort of thing for a living . . . . I even got involved in such: "Just throw something together so Marketing can claim we have something new/different" projects. Some of which that where supposed to have a lifetime of one 'marketing season' are still with the general public today. ![]() Too ![]() Last edited by knc1; 02-04-2016 at 10:23 AM. |
|
![]() |
![]() |
![]() |
#197 | |
Member
![]() Posts: 15
Karma: 10
Join Date: Sep 2015
Device: Kindle Voyage
|
Quote:
|
|
![]() |
![]() |
![]() |
#198 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 65054
Join Date: Oct 2014
Location: Germany
Device: Sony PRS-T2, Kindle PW2, Oasis 3
|
Summary: non-jb font sizes (FONT_RAMP) for dummies like me
Thought I'd make a summary based on findings in this long thread and some simple calculations for beginners like me. Hope this helps understanding how the FONT_RAMP values correlate to what the kindles show on display as measurable height in mm (approximately, differs a bit depending on the font - I'm using Bookerly on 300dpi PW3)
##### Default values are: ################# 7.13 7.81 8.49 9.17 10.53 12.56 16.98 29.2 This translates to height in px: 19.2; 21.1; 23; 24.7; 28.6; 33.9; 45.8; 78.9 How? FONT_RAMP value * 2.7 = height in px How many px per mm are shown on 300dpi PW3/Voyage: 300/25,4 = 11,81px/mm Height in px / 11,81 = height in mm Example: 29.2*2,7=78.9 78.9/11.81=6.68mm ##### Some working sets from other users: ######## 11.30 11.72 12.14 12.56 12.98 13.40 13.82 14.24 9.33 10.00 10.67 11.33 12.00 12.67 13.33 14.00 12.30 12.72 14.14 14.56 15.98 16.40 17.82 18.24 ###### My testing and sets: ################## 7.13 7.81 8.49 9.17 10.53 12.56 16.98 18.24 // Default, but biggest setting (value 8) reduced // Steps between 4-5 and 5-6 too much; value 1 too small 7.81 8.49 9.17 10.53 12.00 12.56 15.98 18.24 // eliminated value 1 and tweaked the upper middle field What I'm happy with for now: 7.81 8.49 9.17 10.00 11.33 12.00 14.56 17.82 // further tweaking from middle upwards to smoothen steps Also interesting read plus cheat sheet to steal more working values from: https://www.mobileread.com/forums/showpost.php?p=3089345&postcount=42 Thanks to odamizu, who also explained a bit there how these values are calculated in order to actually work. More detail about how the kindle values are calculated explained by tono1020: https://www.mobileread.com/forums/sho...5&postcount=54 // it's a good read for the non-metrics especially. For my testing I found my way easier to handle, though less accurate than tono1020's. Last edited by PRS-T2; 02-07-2016 at 12:58 PM. |
![]() |
![]() |
![]() |
#199 |
Member
![]() ![]() ![]() Posts: 11
Karma: 226
Join Date: Oct 2015
Device: KPW3
|
Sorry I still don't understand how did you get that value 2.7 on a 300DPI screen. If those values in FONT_RAMP file are 1/100 inch, then convert 1/100 inch to mm: 29.2/100*25.4 = 7.42mm, not 6.68mm.
|
![]() |
![]() |
![]() |
#200 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 65054
Join Date: Oct 2014
Location: Germany
Device: Sony PRS-T2, Kindle PW2, Oasis 3
|
Quote:
In post #22 tono1020 posted the default values and their equivalent in px. That's where I took the multiplier 2.7 from. Since the outcome is height in px, not mm or inch, it's not a value specific for either of the screen resolutions. I was looking for an easy way to calculate pixel sizes and go device/resolution specific in a later step, because I'm using a PW2 and a PW3. |
|
![]() |
![]() |
![]() |
#201 |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,828
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
|
I received a PM asking for values for a PW2. Since I don't have a PW2, I can only take a stab at some numbers:
10.32 11.26 12.19 13.13 14.07 15.01 15.95 16.88 If anyone with a PW2 cares to offer a better set, please do. To the person who PM'd me, you can really pick any numbers you like. If no one offers a better set, start with the above then adjust the numbers up or down to your liking. |
![]() |
![]() |
![]() |
#202 |
Old Kaz
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 208
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
|
For java professionals - file "ReaderSDK-impl-sq.jar" contains non-bytecode sources in "ReaderResources.java.src" etc...
|
![]() |
![]() |
![]() |
#203 |
Member
![]() Posts: 16
Karma: 22
Join Date: Sep 2011
Device: Sony PRS-350
|
Can anyone confirm whether this still works on 5.7.3? I can't see any difference.
|
![]() |
![]() |
![]() |
#204 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Unless you tweak the bytecode yourself, of course not, this is highly FW-specific, and mixing libraries from different FW versions is a very neat way to shoot yourself in the foot.
|
![]() |
![]() |
![]() |
#205 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,058
Karma: 54671821
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
|
Quote:
Shari |
|
![]() |
![]() |
![]() |
#206 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I think NiLuJe was (erroneously) thinking of kaznelson's modified jars...
Happens to the best of us. ![]() |
![]() |
![]() |
![]() |
#207 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Ooh, we were talking about the FONT_RAMP thing?
My bad, yeah, given the thread, I thought this was still about the margins ;p. Let's blame it on: Yesterday, 05:28 ^^. |
![]() |
![]() |
![]() |
#208 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#209 | |
Member
![]() Posts: 16
Karma: 22
Join Date: Sep 2011
Device: Sony PRS-350
|
Quote:
I'm open to the possibility that I'm doing something wrong, but I had it working before the update. |
|
![]() |
![]() |
![]() |
#210 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,058
Karma: 54671821
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
|
Quote:
Then again, it only ever worked on KF8, so nothing has changed. Shari |
|
![]() |
![]() |
![]() |
Tags |
font_ramp |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to edit margins in MOBI file? | WDeranged | Calibre | 2 | 09-03-2015 05:43 PM |
Default Edit Book Edit Window Font? | lhuxley | Editor | 2 | 03-26-2015 11:11 PM |
Kindle Paperwhite edit PDF margins? | bseos | Amazon Kindle | 8 | 02-10-2014 02:00 PM |
Edit Default Kindle PW Font Sizes | mthodmn101 | Kindle Developer's Corner | 10 | 09-20-2013 11:14 AM |
Kindle margins edit? | 3bayjunkie | Amazon Kindle | 3 | 01-01-2011 11:38 PM |