Slimmed down generated draw function
Fixed fonts getting overridden in present/preview mode