| View previous topic :: View next topic |
| Author |
Message |
xperiments
Joined: 10 Jan 2006 Posts: 3
|
Posted: Tue Jan 10, 2006 10:03 pm Post subject: How to get working Font:getTextSize |
|
|
I cant get a return value from Font:getTextSize('ajjjjja')
example
standard = Font.load('standard.ttf')
standard:setPixelSizes(0,8)
test = standard:getTextSize('some text')
now test = nil.... ummm??? not a table or object
where can I get textWidth & textHeight values?
Anyone can help me ? |
|
| Back to top |
|
 |
romero126
Joined: 24 Dec 2005 Posts: 200
|
Posted: Tue Jan 10, 2006 10:20 pm Post subject: |
|
|
Have you tried it on LuaPlayer v0.16?
In v0.15 the variable returns as nil. I would suggest updating. That may aleviate your problem. |
|
| Back to top |
|
 |
xperiments
Joined: 10 Jan 2006 Posts: 3
|
Posted: Tue Jan 10, 2006 10:25 pm Post subject: |
|
|
| Thanks, I will test in an hour .... and send comments |
|
| Back to top |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Wed Jan 11, 2006 2:53 am Post subject: |
|
|
| I didn't tested this function and as Murphy's law says, it doesn't work. I've added it to the bugs section at http://wiki.ps2dev.org/psp:lua_player:todos for the next release. |
|
| Back to top |
|
 |
|