Fix title rendering for density
Resurrect a lot of Julius' work from Dan's retarded commit