Implement Graphics::drawSubstring native