I think it is not so correct.
_isValidFontName() will check if the font name is valid, it doesn't load the font if it is valid.
So if it is a valid font name, such as "Arial", then it should load "Arial".

But the following code doesn't load "Arial", it just skip it because it is valid.