font problems

A project to port LÖVE to Android handhelds
Locked
User avatar
ghoulsblade
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

font problems

Post by ghoulsblade »

font display is still causing problems, mainly white boxes rather than fonts.

It seems to work for power-of-2 texture sizes now. see attached .love file :
fonttest.love
(2.14 KiB) Downloaded 350 times
should display 3 lines with different font,
1) default font in white (works correctly on my milestone)
2) non-power-of-2 image font in black (316x6) (i only get white boxes on my milestone)
3) power-of-2 (512x8) image font in red (works correctly on my milestone)
4) non-power-of-2 image used for the font (316x6) (i only get a big white box on my milestone)

ttf/truetype font's don't work yet, if anyone knows how to use the android/java api to extract glyphs into an image, please tell me =)
love-android - gamejams
User avatar
miko
Party member
Posts: 410
Joined: Fri Nov 26, 2010 2:25 pm
Location: PL

Re: font problems

Post by miko »

ghoulsblade wrote:font display is still causing problems, mainly white boxes rather than fonts.
Bug report: If I change the application (for example by longpressing home button) and then switch back to love-android, I get white boxes where there were fonts before.
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples
User avatar
ghoulsblade
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

Re: font problems

Post by ghoulsblade »

miko wrote:Bug report: If I change the application (for example by longpressing home button) and then switch back to love-android, I get white boxes where there were fonts before.
this should be fixed with the latest binary, upped a few minutes ago : http://ghoulsblade.schattenkind.net/lov ... ndroid.apk
hagish added a texture reload on surface change, so not only fonts but other images as well =)
love-android - gamejams
User avatar
miko
Party member
Posts: 410
Joined: Fri Nov 26, 2010 2:25 pm
Location: PL

Re: font problems

Post by miko »

ghoulsblade wrote:
miko wrote:Bug report: If I change the application (for example by longpressing home button) and then switch back to love-android, I get white boxes where there were fonts before.
this should be fixed with the latest binary, upped a few minutes ago : http://ghoulsblade.schattenkind.net/lov ... ndroid.apk
hagish added a texture reload on surface change, so not only fonts but other images as well =)
Confirmed, it works for me! If you will be developing it that fast, I would have to buy a tablet with android for this Christmas :awesome:
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: font problems

Post by T-Bone »

Also, love.graphics.setFont() does not accept just numbers (to only change the font size) in love.android right now.
louislingogo
Prole
Posts: 1
Joined: Fri May 04, 2012 2:38 am

Re: font problems

Post by louislingogo »

iam also came across same problem.thanks for sharing :awesome: ,i think i just find the solution.
Mercedes B. McKinney
Prole
Posts: 1
Joined: Tue Jun 19, 2012 4:15 pm

Re: font problems

Post by Mercedes B. McKinney »

:cool: :cool: :cool: thanks found the solution to my problem :awesome: :awesome:
Locked

Who is online

Users browsing this forum: No registered users and 70 guests