Quote:
Originally Posted by Waylander
Thankyou for the link. I found a post from 2017 on here with the default font scales for 167ppi, 212ppi, and 300ppi Kindle screens, so used that as a baseline. I'm ok with doing the basic hack and have been doing so for a few years now so that's not the problem. My main issue, which the linked tutorial doesn't address, is what the unit of measurement is for the fonts. I'm looking for more precision in adjusting the font scale, so am looking for how much each increases in terms of this unit. I've seen ".em points" mentioned around here, and I'm wondering what the amount of .em points is for one increase in font size.
|
Quote:
Originally Posted by shamanNS
My old comment? :P
https://www.mobileread.com/forums/sh...&postcount=153
IIRC last time I played with FONT_RAMP values there was no visible font size change in the UI if the difference between 2 adjacent size options was lower than something like 0.4x, for 300ppi screens.
|
That is pretty close. It has been a long time since I did anything with FONT_RAMP but I think this post
https://www.mobileread.com/forums/sh...5&postcount=54
has the most correct description of the numbers in the FONT_RAMP file. That is they are the font size in increments of 0.01 inches, so 7.01 is 0.0001 inch taller than 7.00
At 300 DPI a pixel is about 0.0033 inches in size, so a step of 0.34 would change the font size by 1 pixel (at 300 DPI).
So the answer to the original question is that the units are 0.01 inches, regardless of DPI, so a value of 14.00 has a font height of 0.14 inches.