| Reply | « Previous Thread | Next Thread » |
|
Hi,
it is possible to determine the height and width of a text? a=u'Text' len(a) is 4 height (a) ? width (a) ? Tanks |
|
Quote:
Do you want character height and width of characters in pixels or characters number in a Text widget ? pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
Quote:
|
|
Hi oper6600,
I'm not sure if there are methods to get the size (h and w) for a character for a specific font. If you are trying to display some text on a canvas and that you are in the complex situation where you need to fit text on a canvas you can use akntextutils extension written by Simo Salminen . I ported it to 3rd edition and you can find it on my share http://students.oamk.fi/~dlefevre/th...dex.php/dlm/32 This extension wrap text to fit canvas screen by giving a width in pixels and a font. It returns an array of strings ready to be printed on the canvas. I hope this help LFD Devices: Nokia E61 3rd Edition - pys60 1.4.0 Tips and modules: http://www.lfdm.net/thesis |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Audio Input Stream on N80 | tkaihock | Symbian Media (Graphics & Sounds) | 9 | 2006-06-30 10:15 |
| how to set the text SIZE in rich text editor? | decryptor | Symbian User Interface | 3 | 2005-10-01 20:08 |
| Maximum size of text region? | wftomas | General Messaging | 2 | 2005-04-01 09:10 |
| Persist text value of user defined option in Enumerated Text Settings List | leethomso | Symbian User Interface | 0 | 2004-11-24 19:49 |
| Size of an Editor (Rich Text) | khamael | Symbian User Interface | 0 | 2004-04-27 12:33 |