Skip to content

Inconsistent behavior between LabelTTFCanvas and LabelTTFWebGL #986

Open
@luisparravicini

Description

@luisparravicini

Changing the text of a TTF label, the label's dimension is updated right away in LabelTTFCanvas but on the next visit made to LabelTTFWebGL.

I think both should do the same, or at least specify this difference in the documentation (maybe it's somewhere in the docs, haven't found it).

setString In LabelTTFCanvas:

// Force update
if (this._string.length > 0)
    this._updateTTF();

in LabelTTFWebGL:

// Force update
this._needUpdateTexture = true;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions