function normalizeTextStyle(style) {
    normalizeStyle(style);
    each$1(style.rich, normalizeStyle);
    return style;
}
@param {CanvasRenderingContext2D} ctx
@param {string} text
@param {module:zrender/graphic/Style} style
@param {Object|boolean} [rect] {x, y, width, height}
                 If set false, rect text is not used.
@param {Element|module:zrender/graphic/helper/constant.WILL_BE_RESTORED} [prevEl] For ctx prop cache.