Implement AS2's TextFormat#getTextExtent

Another fix for the ad from #471