Added check for OS X when setting font