-getTextBounds now has an optional font parameter
-minor tweaks to other functions