Commit f34ee9a1 authored by Alexander.Trofimov's avatar Alexander.Trofimov

common/FontsFreeType/FontFile to function-closure

parent 3398a2e0
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
*/ */
"use strict"; "use strict";
(function(window, undefined){
// Import // Import
var FT_Get_Sfnt_Table = AscFonts.FT_Get_Sfnt_Table; var FT_Get_Sfnt_Table = AscFonts.FT_Get_Sfnt_Table;
var FT_Matrix = AscFonts.FT_Matrix; var FT_Matrix = AscFonts.FT_Matrix;
...@@ -1783,4 +1785,9 @@ function CFontFile(fileName, faceIndex) ...@@ -1783,4 +1785,9 @@ function CFontFile(fileName, faceIndex)
worker._e(); worker._e();
} }
} }
}; }
\ No newline at end of file
//--------------------------------------------------------export------------------------------------------------------
window['AscFonts'] = window['AscFonts'] || {};
window['AscFonts'].CFontFile = CFontFile;
})(window);
...@@ -29,6 +29,7 @@ var FT_Open_Args = AscFonts.FT_Open_Args; ...@@ -29,6 +29,7 @@ var FT_Open_Args = AscFonts.FT_Open_Args;
var FT_Library = AscFonts.FT_Library; var FT_Library = AscFonts.FT_Library;
var FT_Set_Char_Size = AscFonts.FT_Set_Char_Size; var FT_Set_Char_Size = AscFonts.FT_Set_Char_Size;
var raster_memory = AscFonts.raster_memory; var raster_memory = AscFonts.raster_memory;
var CFontFile = AscFonts.CFontFile;
var AscBrowser = AscCommon.AscBrowser; var AscBrowser = AscCommon.AscBrowser;
...@@ -255,7 +256,7 @@ CGlyphData.prototype = ...@@ -255,7 +256,7 @@ CGlyphData.prototype =
ctxD.putImageData(pixDst, 0, 0, 0, 0, w, h); ctxD.putImageData(pixDst, 0, 0, 0, 0, w, h);
} }
} }
} };
function TGlyphBitmap() function TGlyphBitmap()
{ {
......
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