dist/fitty.module.js
function applyStyle(f) {

    // remember original style, we need this to restore the fitty style when unsubscribing
    if (!f.originalStyle) {
      f.originalStyle = f.element.getAttribute('style') || '';
    }

    // set the new style to the original style plus the fitty styles
    f.element.style.cssText = f.originalStyle + ';white-space:' + f.whiteSpace + ';display:' + f.display + ';font-size:' + f.currentFontSize + 'px';
  }
function applyStyle(f) {

    // remember original style, we need this to restore the fitty style when unsubscribing
    if (!f.originalStyle) {
      f.originalStyle = f.element.getAttribute('style') || '';
    }

    // set the new style to the original style plus the fitty styles
    f.element.style.cssText = f.originalStyle + ';white-space:' + f.whiteSpace + ';display:' + f.display + ';font-size:' + f.currentFontSize + 'px';
  }
function applyStyle ( f ) { // remember original style, we need this to restore the fitty style when unsubscribing if ( ! f . originalStyle ) { f . originalStyle = f . element . getAttribute ( 'style' ) || '' ; } // set the new style to the original style plus the fitty styles f . element . style . cssText = f . originalStyle + ';white-space:' + f . whiteSpace + ';display:' + f . display + ';font-size:' + f . currentFontSize + 'px' ; }
apply styles to single fitty
apply styles to single fitty