View Single Post
Old 12-16-2014, 12:27 PM   #295
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,970
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by twowheels View Post
If the professional software developers in this thread are saying that most codebases are such a mess, why is it common sense to assume the kindle software is any different?

Moreover, jbjb pointed out that the person who did the hack complained about the way it was implemented, specifically using the word hardcoded.
hardcoded in this case does not mean what you think it means. It does not mean that it's in the code. It's only hardcoded in a configuration file. It means that Amazon only gives so many sizes and those values are fixed in the configuration file. More numbers can be added and the existing numbers changed. So no, they are not hardcoded in the actual code. As I've been saying, those numbers in the configuration file get passed to the system to generate the font size. Change the numbers and you get different font sizes.

The underlying font sizing is already done. All that needs to be fixed is the UI that passed a number to the system to generate font sizes. It doesn't matter how much of a mess the Kindle code is or not. We already know that all you need do it fix the UI to add more font size choices. I cannot say how easy that is or not. But there's no need to have to do any modifying of any other code then the code that's used to pick a font size and pass the number to the system that already is in place and works.
JSWolf is offline   Reply With Quote