Page 1 of 1

font problems

Posted: Thu Nov 17, 2011 10:35 pm
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 353 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 =)

Re: font problems

Posted: Mon Nov 21, 2011 11:28 am
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.

Re: font problems

Posted: Mon Nov 21, 2011 11:37 am
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 =)

Re: font problems

Posted: Mon Nov 21, 2011 12:16 pm
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:

Re: font problems

Posted: Sat Dec 24, 2011 8:58 am
by T-Bone
Also, love.graphics.setFont() does not accept just numbers (to only change the font size) in love.android right now.

Re: font problems

Posted: Fri May 04, 2012 2:42 am
by louislingogo
iam also came across same problem.thanks for sharing :awesome: ,i think i just find the solution.

Re: font problems

Posted: Tue Jun 19, 2012 4:21 pm
by Mercedes B. McKinney
:cool: :cool: :cool: thanks found the solution to my problem :awesome: :awesome: