How to use @pixi/text - 1 common examples

To help you get started, we’ve selected a few @pixi/text examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pixijs / pixi.js / packages / prepare / src / BasePrepare.js View on Github external
function calculateTextStyle(helper, item)
{
    if (item instanceof TextStyle)
    {
        const font = item.toFontString();

        TextMetrics.measureFont(font);

        return true;
    }

    return false;
}

@pixi/text

Text via the Canvas API

MIT
Latest version published 8 months ago

Package Health Score

91 / 100
Full package analysis

Popular @pixi/text functions

Similar packages