generate dummy TextPainter when cairo is not available