add condition for font setting to avoid emacs init error on cygwin emacs