code: function encodeStyleText_(textStyle, encodedStyles) {
    const fontStyle = textStyle.getFont();
    if (fontStyle !== undefined) {
      const font = fontStyle.split(' ');
      if (font.length >= 3) {
        if (encodedStyles.length > 0) {
          encodedStyles.push('\'');
        }
        encodedStyles.push(encodeURIComponent(`fontSize*${font[1]}`));
      }
    }
    const fillStyle = textStyle.getFill();
    if (fillStyle !== null) {
      encodeStyleFill_(
        fillStyle, encodedStyles, 'fontColor');
    }
  }
docs: Transform an {@link import("ol/style/Text.js").default} into a logical sequence of characters and
  put the result into the given encoded styles's array.
  @param {import("ol/style/Text.js").default} textStyle Text style.
  @param {Array<string>} encodedStyles Encoded styles array.
  @private
  @hidden