jMonkeyEngine / jMonkeyEngine/jmonkeyengine

Centered BitmapText is rendered blurry

Open
#358 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

wontfix
Dominant language
Java
Stars
4.3k
Forks
1.2k
Avg merge
4d 7h
Merged PRs (30d)
14

Description

Class 'BitmapText' renders centered (Align.Center) texts blurry in GUI.

What it actually looks like:
https://www.dropbox.com/s/wqz4yo2gcdgtfum/centered-text-ugly2.png

What it should look like:
https://www.dropbox.com/s/bn46tgdg1ygvthl/centered-text-nice2.png

Code to reproduce:

    @Override
    public void simpleInitApp()
    {
        BitmapFont font = getAssetManager().loadFont("Interface/Fonts/Console.fnt");
        BitmapText text = font.createLabel("This is a centered test text that does not look nice");
        text.setBox(new Rectangle(250, 240, 110, 100));
        text.setAlignment(Align.Center);

        getGuiNode().attachChild(text);
    }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the provided BitmapText reproduction with the centered Align.Center setting and compare the rendered text with the linked examples. Trace the BitmapText GUI layout and rendering path to identify why centered text becomes blurry; done means centered text renders sharply while preserving the requested alignment.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.