shared_ptr and fonts for text