View Single Post
Old 12-12-2014, 01:21 PM   #2
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
There is no way to turn off the font-size slider, it is always set to something, so I think all you can do is set it to a known font size and calculate your pixel font sizes relative to the known base size.

For example, if you set the slider to size 50, then a base font size of 200% will corespond to 100 pixels, and so a paragraph font size of 1% should correspond to a of size of 1px.

Code:
<body style="font-size:200%;">
<p style="font-size:10%;">10 pixel font.</p>
<p style="font-size:20%;">20 pixel font.</p>
(On the unpatched firmware, size 50 is position 20 on the 24-position slider. Edit: I'm assuming the slider sizes are in pixels, but I'm not certain of that.)

Last edited by GeoffR; 12-12-2014 at 01:24 PM. Reason: Assuming slider sizes are in pixels
GeoffR is offline   Reply With Quote