Commit 1690a3cd authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix #32329

parent 93826b4e
...@@ -1275,7 +1275,7 @@ CMetafile.prototype = ...@@ -1275,7 +1275,7 @@ CMetafile.prototype =
}, },
FillTextCode : function(x,y,code) 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) if (code < 0xFFFF)
return this.FillText(x, y, String.fromCharCode(code)); return this.FillText(x, y, String.fromCharCode(code));
......
...@@ -970,7 +970,7 @@ CGraphics.prototype = ...@@ -970,7 +970,7 @@ CGraphics.prototype =
}, },
font : function(font_id,font_size) 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); Math.max(font_size, 1), 0, this.m_dDpiX, this.m_dDpiY, this.m_oTransform);
}, },
SetFont : function(font) SetFont : function(font)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment