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

common/FontsFreeType/FontFile to function-closure

parent 997960dd
"use strict";
(function(window, undefined){
// Import
var FT_Get_Sfnt_Table = AscFonts.FT_Get_Sfnt_Table;
var FT_Matrix = AscFonts.FT_Matrix;
......@@ -1759,4 +1761,9 @@ function CFontFile(fileName, faceIndex)
worker._e();
}
}
};
\ No newline at end of file
}
//--------------------------------------------------------export------------------------------------------------------
window['AscFonts'] = window['AscFonts'] || {};
window['AscFonts'].CFontFile = CFontFile;
})(window);
......@@ -5,6 +5,7 @@ var FT_Open_Args = AscFonts.FT_Open_Args;
var FT_Library = AscFonts.FT_Library;
var FT_Set_Char_Size = AscFonts.FT_Set_Char_Size;
var raster_memory = AscFonts.raster_memory;
var CFontFile = AscFonts.CFontFile;
var AscBrowser = AscCommon.AscBrowser;
......@@ -231,7 +232,7 @@ CGlyphData.prototype =
ctxD.putImageData(pixDst, 0, 0, 0, 0, w, h);
}
}
}
};
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