11-01-2010 12:09 PM
I have an application that I developed for the Bold that makes a lot of use of formatted text in a RichTextField. The application runs and looks exactly fine in the 9800 simulator. But when I run it on a real 9800 device the text formatting is incorrect. Text which had been centered is left-justified, and the text size for labels (which are italicized) is larger so they overrun their fields. I'm wondering if anyone else has observed inconsistencies of this nature in the use of the RichTextField between the simulator and the device. I'm at a loss for how to fix this as there's no easy way for me to know what the device needs to get the formatting right.
11-01-2010 02:46 PM
Does the BlackBerry Device Software running in the simulator match that of the device? You can check by going to Options, Device, About Device Versions.
11-02-2010 12:52 PM
I've sort of resolved this. The problem was that I was setting the application font size to the size of the device (system) default font, and the default font was set differently on the device and the simulator. But there seem to be some side effects of using the FontManager.setApplicationFont in conjunction with the RichTextField. That would be "off-thread" though, so if I can't figure this opne out I'll start another thread.