Skip to content

Commit

Permalink
Fixes for snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
K0R0L committed Jan 26, 2025
1 parent e1757dd commit 5299872
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DesktopEditor/fontengine/js/engine/module_native.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
window['AscFonts'] = window['AscFonts'] || {};
var AscFonts = window['AscFonts'];

var g_native_engine = CreateEmbedObject("CTextMeasurerEmbed");
var g_native_engine = null;

function CReturnObject()
{
Expand Down Expand Up @@ -236,4 +236,6 @@ AscFonts.Hyphen_Word = function(lang, word)
AscFonts.onLoadModule();
AscFonts.onLoadModule();

window["InitNativeTextMeasurer"] = function() { g_native_engine = CreateEmbedObject("CTextMeasurerEmbed"); };

})(window, undefined);

0 comments on commit 5299872

Please sign in to comment.