Text utilities for use with GD drawing package