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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-14-2017, 08:42 PM   #226
odamizu
maniac
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 593
Karma: 1636110
Join Date: Mar 2015
Device: Kindle Oasis & Voyage, iOS
I'm curious how the above default values were determined (7.13 7.81 8.49 9.17 10.53 12.56 16.98 29.2)

When I use those values in FONT_RAMP then compare them to another identical device without FONT_RAMP, the 1st and 4th values (7.13 & 9.17) don't match up.

Not that it makes a big difference in using FONT_RAMP. Just curious.
odamizu is offline   Reply With Quote
Advert
Old 06-14-2017, 09:45 PM   #227
xl743
Junior Member
xl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beauty
 
Posts: 9
Karma: 32714
Join Date: Apr 2015
Device: PocketBook 301+
Quote:
Originally Posted by odamizu View Post
I'm curious how the above default values were determined (7.13 7.81 8.49 9.17 10.53 12.56 16.98 29.2)
This is the code from ReaderResources.java.src:

PHP Code:
            "font.menu.size.list", new int[][] { new int[] { 7891113162537 } } },
        { 
"font.size.mapping.indic", new float[] { 8.49f9.17f10.53f11.55f12.57f13.58f16.98f29.21f } },
            { 
"font.size.mapping.cjk", new float[] { 7.13f8.15f8.83f9.51f10.19f11.88f16.98f29.20f } },
            { 
"font.size.mapping", new float[] { 7.13f7.81f8.49f9.17f10.53f12.56f16.98f29.20f } }, 
xl743 is offline   Reply With Quote
Old 06-14-2017, 11:40 PM   #228
odamizu
maniac
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 593
Karma: 1636110
Join Date: Mar 2015
Device: Kindle Oasis & Voyage, iOS
Quote:
Originally Posted by xl743 View Post
This is the code from ReaderResources.java.src ...
Thank you!!
odamizu is offline   Reply With Quote
Old 06-15-2017, 08:28 AM   #229
xl743
Junior Member
xl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beautyxl743 does all things with Zen-like beauty
 
Posts: 9
Karma: 32714
Join Date: Apr 2015
Device: PocketBook 301+
Quote:
Originally Posted by odamizu View Post
Thank you!!
You are welcome.

BTW, I've just made some quick tests with CoolReader which uses the same FreeType library for font rendering. I set CR window size to correspond one of my Kindle Oasis (1072x1448) and tried my calculated values.

With 4th font and smallest line spacing I've got the same 25 lines per screen with 9.17pt (38px) font. I've got the same 34 lines per screen with 7.13 (29px) font. I did it with all 8 sizes and they matched perfectly.

As to line spacing, I've figured it out too. Maybe someone needs it:
Smallest line spacing - 100% (in FreeType/CoolReader terms)
Medium line spacing - 120%
Biggest line spacing - 140%
xl743 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
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


All times are GMT -4. The time now is 02:24 PM.


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