title: jQuery fake a window resize
body: <p>I found a script on StackOverflow that does a pretty good job on scaling text to fit a container <a href="https://stackoverflow.com/questions/21745489/how-to-scale-text-size-compared-to-container/21745965#21745965">How to scale text size compared to container</a>. After trying plugins like FitText and textFill and not really doing the job for me.</p>
  
  <p>Anyway, this script works pretty well but it's having a small problem working with google fonts. In normal fonts it works fine, but when I use a google font I need to resize my window for the script to work.</p>
  
  <p>My JS skills are too low to fix this, so I was wondering if there's a way to fake a window resize. I tried putting </p>
  
  <pre><code>$(window).resize
  </code></pre>
  
  <p>at the end of my jquery file but it doesn't seem to do much.</p>