diff --git a/ts/output/chtml.ts b/ts/output/chtml.ts index da7265909..53c42901c 100644 --- a/ts/output/chtml.ts +++ b/ts/output/chtml.ts @@ -140,13 +140,6 @@ CommonOutputJax, CHTMLWrapperFactory, CH this.font.adaptiveCSS(this.options.adaptiveCSS); } - /** - * @override - */ - public initialize() { - this.chtmlStyles = null; - } - /** * @override */ diff --git a/ts/output/svg.ts b/ts/output/svg.ts index e64c05a3e..d027d330c 100644 --- a/ts/output/svg.ts +++ b/ts/output/svg.ts @@ -135,9 +135,8 @@ CommonOutputJax, SVGWrapperFactory, SVGFon */ public initialize() { if (this.options.fontCache === 'global') { - this.clearFontCache(); + this.fontCache.clearCache(); } - this.svgStyles = null; } /**