Questions tagged [bitmap-fonts]

Non-scalable font made out of bitmap images rather than vector data like in Truetype fonts. Used mainly in games. Typically render faster than truetype fonts.

93 questions
2
votes
1 answer

LWUIT bitmap-font not working done?

When I use a bitmap font in lwuit List in emulator and SonyEricsson k510i everythings right but in g900 if font size is bigger than 9 words, is not shown ? please help me to fix this problem ...
1
vote
1 answer

Combine several bitmaps into (TrueType) font

I have several (~200) small bitmap files with glyph images. How can I combine them to a single bitmap font file? Actually, I need a TrueType font created from these bitmaps (with no curves, smoothing, vectorization or any transformations). It's a…
Alexander Kosenkov
  • 1,597
  • 1
  • 10
  • 21
1
vote
1 answer

LWUIT bitmap font

I'm Developing a small application in one of the classes i'm using two buttons , I have used bitmap fonts for all the components used in application (using Resource Editor) for both English and Persian language. Now I want in result of clicking…
aida
  • 153
  • 1
  • 9
1
vote
0 answers

LibGDX Text is Distorted If I Use GlyphLayout to Draw Bitmap Font

I need to use glyphlayout so that I can centre the text, but I found if I do the text gets distorted due to the spacing being incorrect. public SimpleButton(String text, float x, float y, float w, float h, BitmapFont font) { pos = new Vector2(x,…
Hasen
  • 11,710
  • 23
  • 77
  • 135
1
vote
1 answer

How to draw text in world coordinate space?

I'm creating a game in libGDX. I want to create some UI elements (buttons and stuff), because of my app design, I would like to draw them in the world space, as other game objects. I'm using Freetype generator that generates a bitmap font from true…
Jerry Lundegaard
  • 366
  • 3
  • 16
1
vote
1 answer

Libgdx text on Android

I'm new to libgdx and i'm trying to display some text on the screen. I've watched several tutorials, and they're all saying that I should initiate the BitmapFont with no parameters and it will then use the default font. But on my android device it…
1
vote
1 answer

Memory Leak with BitmapFont

I am currently working on an android app using LibGDX and have pinpointed my memory leak down to this one method. Can anyone help me figure out where this is coming from? I have tried looking back through native LibGDX methods but am still having…
Michael
  • 83
  • 9
1
vote
1 answer

Libgdx font cut

I have an issue with libgdx BitMapFont, I display labels inside of a scene2d table, but the font is "cut" at some parts of the text (see below). Here is my code : For declaring the font : font12 = new…
JavaDev
  • 307
  • 1
  • 3
  • 16
1
vote
1 answer

Libgdx deprecated drawMultiLine and getBounds

So i found a toolkit to create VisualNovels but it uses font.drawMultiLine( batch, previous.toString() + current.substring(0, c), dx, dy); And else if (font.getBounds(test + words[i] + "…
Darkly
  • 385
  • 1
  • 3
  • 18
1
vote
1 answer

LibGDX BitmapFont Markup Alpha Value

Alright, so I have a bitmap font with markup enabled. The problem is, I need to set the global alpha value for a whole string of text without setting an individual alpha value for each color code. For example, I have... "[#0000ff]this is blue,…
Anuken
  • 65
  • 11
1
vote
0 answers

Showing non-western language from right to left in libgdx (Android)

This is my problem: I'm using Hiero to generate a font for my libgdx game (files .fnt and .png).I success to generate a custom font, but for laguage like arabic (writing text from right to left). i show the result starting from left to right but me…
user3714257
  • 57
  • 1
  • 6
1
vote
1 answer

LibGDX multiple cameras

So, I am working with LiBGDX and Box2D, using the PixelsPerMeter conversion, and I have a camera that follows the player around, but when I turn debug mode on I need to be able to draw a font with the fps on screen, so I always can see it in the…
user4441930
1
vote
1 answer

Merge BitmapFont and UI skin in single Atlas?

If I have a UI with a .atlas and a BitmapFont with a .atlas is there a simple way to combine these into one or do I have to merge them myself in a image file and manually offset all the elements in the combined .atlas to the correct position? It is…
Madmenyo
  • 8,389
  • 7
  • 52
  • 99
1
vote
1 answer

BitmapFont special characters not displayed in Android, in desktop version works though

I have a libgdx project that supports an android and a desktop version. For the fonts I previously used the FreeTypeFontGenerator to generate my fonts. Fonts worked fine, but then I decided to create my BitmapFonts with a .fnt & .png file, to have…
donfuxx
  • 11,277
  • 6
  • 44
  • 76
1
vote
1 answer

Libgdx BitmapFont bad framerate

I have a BitmapFont to display the player score. The player is moving in a constant rate. For the BitmapFont I use a second OrtographicCamera and SpriteBatch so I don't need to recalculate the fonts position. My problem is: as soon as I include the…