I read in the documentation for the Graphics class that it is not possible to implement vertical centering of text :
"Vertical centering of the text is not specified since it is not considered useful, it is hard to specify, and it is burdensome to implement. Thus, the VCENTER value is not allowed in the anchor point parameter of text drawing calls."
So isn't there some way to implement this? We need get this to work because OVI demands that we place the button labels near the keys in landscape mode for our product Astral effects:
We can not use commands as the labels in the GUI, because that would mess up the fullscreen canvas. That is why we have implemented the button labels with drawRect, drawLine and drawString. We could solve the problem with placing the button labels near the keys in landscape mode if could just get vertical centering of the text to work.
This is what OVI wrote:
The labels are not placed near the keys in landscape mode. STEPS TO REPRODUCE: 1. Start the content under test. 2. Explore the content: Menus, Options, Images, and etc... 3. Switch to Landscape Mode. ACTUAL RESULT: The labels are not placed near the keys in landscape mode. EXPECTED RESULT: Labels are places near the keys in each orientation. AFFECTED DEVICES: N92, N93,N93i,E70, E66, N82, N95,N95 8Gb, E90 Communicator, 5730 XpressMusic, 6210 Navigator, 6710 Navigator, 6720 Classic, E52, E55, E75, N79, N85, N86 8MP, N96, 6760 Slide, 6790 Slide,6790 Surge, 5230, 5233, 5235, Nokia 5250, C6, 5530 XpressMusic, 5800 XpressMusic, Nokia C6-00, N97, N97 mini, X6, Nokia C7-00, Nokia N8-00. NOTE#1: The application is signed with Verisign certificate, so the application will not work on the devices Nokia 3610 Fold, Nokia 5310 XpressMusic, Nokia 6263, Nokia 6267 and Nokia 6555