Change custom font support to use external variable, not window.chatOptions