added null check for font names