Commit 237b88c2 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix #32329

parent 3c520326
No related merge requests found
......@@ -1299,7 +1299,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));
......
......@@ -994,7 +994,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)
......
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