How to let readers adjust font size? Help!

Dear fellow app developers,

I am an ebook publisher.

I have been thinking adding a new function (slider, button or whatever) which allows my readers to adjust the font size. Unfortunately, I haven’t got a clue. 

Please advise me if you have any good idea. 

Thank you in advance!

Regards,

Henry 

How are you making your display text?  With display.newText()?

Yes, correct. I use display.newText().

Thank you for asking.

Regards,

Henry 

Okay you specify a point size when you call display.newText.  You can create a slider which basically returns a percentage value (0 … 100 I think).  You can decide to do this several ways.  You could say have a minimum point size of say 8 and a max of 24 with 16 being in the middle.  Grab the value of the slider * 8 + 8 will give you a range of 8 to 24, but you will get fractional values.  If you want to have it more stepped, if the slider is say 0. its 10 point.  If its 1-25, then it’s 14 point. If it’s 26-50, it’s 16 point, 51-75, 18 point, 76-99, 20 point, and 100 22 point or something like that.

Rob

Thank you so much, Rob.

I will take your advice and try to work it out.

Thank you again, Rob.

Regards,

Henry

How are you making your display text?  With display.newText()?

Yes, correct. I use display.newText().

Thank you for asking.

Regards,

Henry 

Okay you specify a point size when you call display.newText.  You can create a slider which basically returns a percentage value (0 … 100 I think).  You can decide to do this several ways.  You could say have a minimum point size of say 8 and a max of 24 with 16 being in the middle.  Grab the value of the slider * 8 + 8 will give you a range of 8 to 24, but you will get fractional values.  If you want to have it more stepped, if the slider is say 0. its 10 point.  If its 1-25, then it’s 14 point. If it’s 26-50, it’s 16 point, 51-75, 18 point, 76-99, 20 point, and 100 22 point or something like that.

Rob

Thank you so much, Rob.

I will take your advice and try to work it out.

Thank you again, Rob.

Regards,

Henry