[surface.go] implemented function TextExtents()