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 :
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 =)
font problems
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
font problems
love-android - gamejams
Re: font problems
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.ghoulsblade wrote:font display is still causing problems, mainly white boxes rather than fonts.
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Re: font problems
this should be fixed with the latest binary, upped a few minutes ago : http://ghoulsblade.schattenkind.net/lov ... ndroid.apkmiko 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.
hagish added a texture reload on surface change, so not only fonts but other images as well =)
love-android - gamejams
Re: font problems
Confirmed, it works for me! If you will be developing it that fast, I would have to buy a tablet with android for this Christmasghoulsblade wrote:this should be fixed with the latest binary, upped a few minutes ago : http://ghoulsblade.schattenkind.net/lov ... ndroid.apkmiko 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.
hagish added a texture reload on surface change, so not only fonts but other images as well =)
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples
Re: font problems
Also, love.graphics.setFont() does not accept just numbers (to only change the font size) in love.android right now.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
-
- Prole
- Posts: 1
- Joined: Fri May 04, 2012 2:38 am
Re: font problems
iam also came across same problem.thanks for sharing ,i think i just find the solution.
-
- Prole
- Posts: 1
- Joined: Tue Jun 19, 2012 4:15 pm
Re: font problems
thanks found the solution to my problem
Who is online
Users browsing this forum: No registered users and 1 guest