12-26-2012 06:34 PM
I am testing my app on the dev alpha with different font sizes. In settings, I change the device text size to the highest possible(18) and run my app. It pretty much makes my app unreadable so obviously I need to avoid this.
Do any of you know a way to fix the font/text size so that it is not affected by the device text-size settings? If not, could you please tell me what you are doing to combat this senario within your own apps?
The code below doesnt block device from resizing:
text: "Hello world"
Solved! Go to Solution.
01-17-2013 08:41 PM - edited 01-17-2013 09:11 PM
Anyone knows how to have a fixed font size for Button component in QML?
The below code that does work for Label and TextField, doesn't work for Button component:
EDIT: Created a new thread for this question because this thread was already set as Solved.
01-18-2013 02:16 AM
01-18-2013 02:47 AM
I agree with you completely. My issue was that when I took into account a blackberry x-series(720x720) many things shifted offscreen and into oblivion. I wish RIM set up an SDK that would allow me to build for both, but unfortunately, not the case... I guess thats not completely true, but from my understanding, in order to qualify for the 10k program, my app needed to suit both 720x720 and 1280x720 resolutions.
If I can create an app for both, I would love to allow the user's preferred size to reflect within my app. A 720 squeeze from a 1280 resolution is impossible without a fixed font size, in my opinion.
01-23-2013 06:36 PM
01-23-2013 10:21 PM
Again, use the knowledge with caution. RIM most likely did not make these controls very customizable due to the fact that most customization will annoy your users.
Besides those who can't see well and need the font size turned up, there are others like me who (thankfully) do not have any such needs and prefer to keep our font sizes tiny, to maximize the amount on screen.
You will potentially make the app unusable by the people who need it big, while annoying those of us who like things small. So, basically, the only people using your app will have things at regular size. This defeats the entire purpose of making a custom control, for almost every case.
Basically, unless you have a very good reason, you are probably wasting your time worrying about it as you are ensuring that the people who are "harmed" by the fixed size won't ever be seeing your work for more than a moment.