Using a provided Opentype.js font object, draws a string, sized to fit inside a given rectangle on an HTML5 canvas