Added check for global variable before running font code.