Fixed font resource pointer issue