canvas-fit

Small module for fitting a canvas element within the bounds of its parent.

textfit

A fast, jQuery-free text sizing component that quickly fits single and multi-line text to the width (and optionally height) of its container.