Search found 3 matches

by xperiments
Wed Jan 11, 2006 6:57 pm
Forum: PSP Lua Player Development
Topic: More Truetype errors
Replies: 2
Views: 2405

More Truetype errors

Hi, I have this problems: 1 - if I create an new image, and whant to put some text in it as: _font = Font.load('somefont.ttf') _font:setPixelSizes(0,30) fileImage = Image.createEmpty(480,272) fileImage:fontPrint(_font , 0, 0, 'Hello', Color.new(0,0,2555)) the text not render, it seems to need a: fil...
by xperiments
Tue Jan 10, 2006 10:25 pm
Forum: PSP Lua Player Development
Topic: How to get working Font:getTextSize
Replies: 3
Views: 1450

Thanks, I will test in an hour .... and send comments
by xperiments
Tue Jan 10, 2006 10:03 pm
Forum: PSP Lua Player Development
Topic: How to get working Font:getTextSize
Replies: 3
Views: 1450

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 ?