You are welcome.
API is awfull, I know. Causes long lines sometimes. The text -function has all the operations to set the font, so it was easier for me to put all functionality in it. Bad decision maybe.
I have been thinking to make it similar to Symbian's API. By using a separate function to set the font, I could separate the other functionality also in similar way. It would be a bit faster also, since there would be no need to set the font attributes for drawing every time. In Python it would look something like this:
draw.setFont( "normal", size = 7, bold = True, fill = ( 255,0,0 ) )
width = draw.getWidth( u"Title:" )
draw.text( (10, 15), u"Title:" )
draw.text( (10 + width, 15), u"value" )
And I'm not sure, if the text drawing function should be kept backwards compatible with scripts written for pre 3rd edition. At least those new features I added will be removed to separate functions. After setting the font, all that is actually needed is the text and position parameters. By using separate setFont -function, it would propably be easier to make scripts work in both platforms:
This would be a good time to change the API, because it seems that it is too tricky to make a compatible solution. Or what do you think?
if s60ver >= (3,0):
draw.setFont( u"Times New Roman", size=12 )
draw.setFont( u"LatinBold12" )