Removed unneeded if statement
Added unistd.h for non Windows OSes.
Now log error when CreateFont cannot create a TTF font.