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.
Questions tagged [bitmap-fonts]
93 questions
0
votes
2 answers
What is targetWidth in glyphLayout
What does parameter targetWidth exactly means here and what it has to do with wrap parameter?
public GlyphLayout (BitmapFont font, CharSequence str, Color color, float targetWidth, int halign, boolean wrap) {
setText(font, str, color,…

Shubham Tripathi
- 15
- 3
0
votes
1 answer
Libgdx Find out where the lines ends
So I have a label - 200 width with wrap set to true. Before a set text to my label I want to check where first line ends, then when the second line end etc. Is it possible to check this? I'm working on text justify algorithm for label and I need to…

Dragomirus
- 439
- 3
- 14
0
votes
1 answer
BitmapFont animation in Libgdx scene2d Actor
I am trying to animate an actor which contain a simple message written with bitmapfont using fadeIn action but it doesn't work.
Here is my code.
public class Message extends Actor{
BitmapFont font;
String message;
float x,…

MAGS94
- 500
- 4
- 15
0
votes
1 answer
LibGDX FreetypeFont in 3D
Is there a proper way to use GDX FreeTypeFont in 3D?
I'm not trying to rotate the text, but I do want the text to go behind 3D objects if the object's center is in front of the text.
Any ideas on how to do this?
Is there somehow a way to attach a…

Luca
- 171
- 1
- 13
0
votes
2 answers
Error when using JSON to initialize TextButton (Libgdx)
I'm trying to initize a TextButton by giving it a JSON file which contains the style of the button, however I keep getting the following error:
Exception in thread "LWJGL Application"
java.lang.IllegalArgumentException: Missing LabelStyle…

Walu
- 1
0
votes
2 answers
How to render Hindi Text in Libgdx?
How to render Hindi text in libgdx using mangal.ttf or any other font.
Square boxes are coming when try to print hindi text.

arv
- 250
- 3
- 15
0
votes
1 answer
How to get the natural fontsize of bitmapfont?
If I have a bitmapfont such as;
fonttexture = new Texture(Gdx.files.internal("data/fonttest.png"), true);
font= new BitmapFont(Gdx.files.internal("data/fonttest.fnt"),
new TextureRegion(fonttexture ), true);
Is it possible to…

darkflame
- 998
- 1
- 9
- 23
0
votes
1 answer
Scene2D.UI bitmap font can't find the atlas region
I'm currently reading myself into the scene2d.ui component of libGDX and I noticed something I can't quite explain. According to the documentation the skin looks for a texture region with the same name (without file ending) in the provided texture…

The_Blog
- 155
- 1
- 12
0
votes
0 answers
setting up cocos2d CCBitmapFontAtlas for arabic font android
i am stuck at getting an arabic fnt and png file(bitmap font style ) which i have created with Hiero bitmap font tool to work with my cocos2d android game.
i am replacing this line
"CCBitmapFontAtlas selectgame = CCBitmapFontAtlas.bitmapFontAtlas (…

Yousof Kakhki
- 1
- 1
0
votes
1 answer
Best procedure to generate a 5*7 bitmap font
Appart from manual entry,
is there a more efficient method to create C-source code
for a cyrillic 5*7 font suitable for a graphic LCD display?

AndersJ
- 411
- 1
- 3
- 15
0
votes
1 answer
LibGDX Bitmap Font Performance
I have a class extended to Actor
This is the draw function
@Override
public void draw(Batch batch, float parentAlpha) {
batch.setColor(getColor());
FreeTypeFontGenerator generator = new…

Mustafa Süve
- 151
- 2
- 11
0
votes
1 answer
GdxFreetype and camera: fonts become blurry
I generate my BitmapFonts at runtime with GdxFreetype. As the parameter.size is in pixels and I use a camera which scales up the scene, the font becomes blurry (even with texture filters at higher resolutions).
I need a way to create fonts based on…

Antict
- 597
- 5
- 22
0
votes
1 answer
How to add BitmapFont to SelectBox or TextField?
I follow this link InternationalFontsTest.java and I want to use Bitmapfont koreanFont add to Item SelectBox (Scene2d.ui).
Thank you.
0
votes
0 answers
SKBitmapFont in SKLabelNode - finally a support for bitmap fonts?
Is Apple finally adding support for bitmap fonts? I was debugging today and saw a _bmf property of type SKBitmapFont in SKLabelNode.

Kami Dojin
- 41
- 3
0
votes
1 answer
How to override default Feathers theme font
I wanted to override the MinimalDesktopTheme default font (to be able to use UTF-8 characters) and I've extended the theme class like this:
public class DesktopTheme extends MinimalDesktopTheme
{
public function DesktopTheme()
{
…

Kolyunya
- 5,973
- 7
- 46
- 81