Implement AS2's TextFormat#getTextExtent

Another fix for the ad from #471
Merge pull request #916 from tschneidereit/master

Implement AS2's TextFormat#getTextExtent