Fix broken custom font handling