View Single Post
Old 06-15-2017, 08:28 AM   #229
xl743
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
 
xl743's Avatar
 
Posts: 19
Karma: 32720
Join Date: Apr 2015
Device: Kindle Oasis, Pocketbook 840-2
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