From 1690a3cd7d5f1b6d2e5cf72f6a5796906c491598 Mon Sep 17 00:00:00 2001 From: "Alexander.Trofimov" <Alexander.Trofimov@onlyoffice.com> Date: Tue, 26 Apr 2016 18:04:51 +0300 Subject: [PATCH] fix #32329 --- common/Drawings/Metafile.js | 2 +- word/Drawing/Graphics.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/Drawings/Metafile.js b/common/Drawings/Metafile.js index bed3886fa..b32f66272 100644 --- a/common/Drawings/Metafile.js +++ b/common/Drawings/Metafile.js @@ -1275,7 +1275,7 @@ CMetafile.prototype = }, FillTextCode : function(x,y,code) { - var _font_info = AscFonts.g_font_infos[window.g_map_font_index[this.m_oFont.Name]]; + var _font_info = AscFonts.g_font_infos[AscFonts.g_map_font_index[this.m_oFont.Name]]; if (code < 0xFFFF) return this.FillText(x, y, String.fromCharCode(code)); diff --git a/word/Drawing/Graphics.js b/word/Drawing/Graphics.js index 400fa15fb..72a1db866 100644 --- a/word/Drawing/Graphics.js +++ b/word/Drawing/Graphics.js @@ -970,7 +970,7 @@ CGraphics.prototype = }, font : function(font_id,font_size) { - AscFonts.g_font_infos[window.g_map_font_index[font_id]].LoadFont(editor.FontLoader, this.IsUseFonts2 ? this.m_oFontManager2 : this.m_oFontManager, + AscFonts.g_font_infos[AscFonts.g_map_font_index[font_id]].LoadFont(editor.FontLoader, this.IsUseFonts2 ? this.m_oFontManager2 : this.m_oFontManager, Math.max(font_size, 1), 0, this.m_dDpiX, this.m_dDpiY, this.m_oTransform); }, SetFont : function(font) -- 2.30.9