setFontSizeMethod = (val) => {
  const selectedElements = svgCanvas.getSelectedElements()
  svgCanvas.setCurText('font_size', val)
  svgCanvas.changeSelectedAttribute('font-size', val)
  if (!selectedElements[0]?.textContent) {
    svgCanvas.textActions.setCursor()
  }
}
Applies the given font size to the selected element.
@function module:svgcanvas.SvgCanvas#setFontSize
@param {Float} val - Float with the new font size
@returns {void}