View Single Post
Old 02-14-2016, 01:43 PM   #200
PRS-T2
Connoisseur
PRS-T2 has read every ebook posted at MobileReadPRS-T2 has read every ebook posted at MobileReadPRS-T2 has read every ebook posted at MobileReadPRS-T2 has read every ebook posted at MobileReadPRS-T2 has read every ebook posted at MobileReadPRS-T2 has read every ebook posted at MobileReadPRS-T2 has read every ebook posted at MobileReadPRS-T2 has read every ebook posted at MobileReadPRS-T2 has read every ebook posted at MobileReadPRS-T2 has read every ebook posted at MobileReadPRS-T2 has read every ebook posted at MobileRead
 
PRS-T2's Avatar
 
Posts: 78
Karma: 65054
Join Date: Oct 2014
Location: Germany
Device: Sony PRS-T2, Kindle PW2, Oasis 3
Quote:
Originally Posted by ecc29 View Post
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.
Hey ecc29 sorry for the late answer, had a rough week :-)

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.
PRS-T2 is offline   Reply With Quote