more resilient font assignment