Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
abhishek_puppalwar
Posts: 69
Registered: ‎01-17-2010
My Device: 9700 Bold
Accepted Solution

How to get System Font set by user

Hi All,

 

I am looking for any way to get the Font set by user in options of the device.

My requirment is to check whether user sets the Font size above 11 or not. 

If user sets it above 11, say to 13 or 14, in my application i need to change it to 11 back again.

But the application needs to support the Font size change upto 11.

 

Please help me through this if any one has any idea.

 

Thanks 

Abhishek

AbhishekPXP
Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to get System Font set by user

Font.getDefault should return this
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
abhishek_puppalwar
Posts: 69
Registered: ‎01-17-2010
My Device: 9700 Bold

Re: How to get System Font set by user

Can we restrict user to some particular range of Font size, say 6 to 11?

If user selects Font size above 11 can we change it to 11 through our application for our application only?

AbhishekPXP
Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to get System Font set by user

http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/FontManager.html#setApplica...
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
abhishek_puppalwar
Posts: 69
Registered: ‎01-17-2010
My Device: 9700 Bold

Re: How to get System Font set by user

Thanks Simon for the quick reply, but i think the link you sent me have information for the 6.0 only and that will not be useful for lower OS versions like 4.5.

 

AbhishekPXP
Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to get System Font set by user

for lower versions use Font.setDefault
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
abhishek_puppalwar
Posts: 69
Registered: ‎01-17-2010
My Device: 9700 Bold

Re: How to get System Font set by user

Thanks for the solution !!!
AbhishekPXP