packages/prepare/src/BasePrepare.js
function calculateTextStyle(helper, item)
{
    if (item instanceof TextStyle)
    {
        const font = item.toFontString();

        TextMetrics.measureFont(font);

        return true;
    }

    return false;
}
function calculateTextStyle(helper, item)
{
    if (item instanceof TextStyle)
    {
        const font = item.toFontString();

        TextMetrics.measureFont(font);

        return true;
    }

    return false;
}
function calculateTextStyle ( helper , item ) { if ( item instanceof TextStyle ) { const font = item . toFontString ( ) ; TextMetrics . measureFont ( font ) ; return true ; } return false ; }
Built-in hook to calculate a text style for a PIXI.Text object.

@private
@param {PIXI.Renderer|PIXI.CanvasPrepare} helper - Not used by this upload handler
@param {PIXI.DisplayObject} item - Item to check
@return {boolean} If item was uploaded.
Built - in hook to calculate a text style for a PIXI . Text object .