Skip to content

Regression since 3.12 : text from a BMFont is moved a few pixels to the right. #16866

Open
@Paco777

Description

@Paco777
  • cocos2d-x version: 3.13.1
  • devices test on: iPhone6
  • developing environments : Xcode version: 8.1

Steps to Reproduce:

  1. create and display a label from a BMFont :
    Label::createWithBMFont("font_numbers.fnt","2", TextHAlignment::CENTER);

  2. In 3.13.1, the text is offset in x of a few pixels (and is partly outside the smaller bounding box)
    The problem was not in my previous 3.12 version.
    This is annoying if the try to center the text.

Attached a screenshot of the same code running on 3.12 and 3.13.1.

3 12 - 3 13 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions