Add text drawing and basic geometry functions.