Skip to content

Centered BitmapText is rendered blurry #358

@slyh80

Description

@slyh80

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);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions