Commit 6e8ba84a authored by Alexander.Trofimov's avatar Alexander.Trofimov

common/FontsFreeType/font_engine to function-closure

parent cb62fd90
......@@ -15,6 +15,8 @@
* -----------------------------------------------------------------------------
*/
var asc = window["Asc"];
var FT_Common = AscFonts.FT_Common;
/**
* Отвечает за условное форматирование
......
......@@ -2,6 +2,7 @@
(function(window, undefined) {
// Import
var g_memory = AscFonts.g_memory;
var CellValueType = AscCommon.CellValueType;
var c_oAscCellAnchorType = AscCommon.c_oAscCellAnchorType;
var c_oAscBorderStyles = AscCommon.c_oAscBorderStyles;
......
"use strict";
// Import
var g_memory = AscFonts.g_memory;
var CellValueType = AscCommon.CellValueType;
var c_oAscBorderStyles = AscCommon.c_oAscBorderStyles;
var fSortAscending = AscCommon.fSortAscending;
......
......@@ -23,6 +23,9 @@ var History = {};
window["Asc"] = {};
var Asc = window["Asc"];
window["AscFonts"] = {};
var AscFonts = window["AscFonts"];
window["AscCommon"] = {};
var AscCommon = window["AscCommon"];
......
......@@ -6,6 +6,8 @@
* Time: 12:01
*/
// Import
var g_memory = AscFonts.g_memory;
var FOREIGN_CURSOR_LABEL_HIDETIME = 1500;
......
......@@ -8,6 +8,8 @@
function (window, undefined) {
// Import
var g_memory = AscFonts.g_memory;
var c_oAscSizeRelFromH = AscCommon.c_oAscSizeRelFromH;
var c_oAscSizeRelFromV = AscCommon.c_oAscSizeRelFromV;
......
"use strict";
// Import
var FT_Get_Sfnt_Table = AscFonts.FT_Get_Sfnt_Table;
var FT_Matrix = AscFonts.FT_Matrix;
var FT_Set_Char_Size = AscFonts.FT_Set_Char_Size;
var FT_Set_Transform = AscFonts.FT_Set_Transform;
var __FT_CharmapRec = AscFonts.__FT_CharmapRec;
var FT_Set_Charmap = AscFonts.FT_Set_Charmap;
var FT_Get_Char_Index = AscFonts.FT_Get_Char_Index;
var FT_Load_Glyph = AscFonts.FT_Load_Glyph;
var FT_Get_Glyph = AscFonts.FT_Get_Glyph;
var FT_BBox = AscFonts.FT_BBox;
var FT_Glyph_Get_CBox = AscFonts.FT_Glyph_Get_CBox;
var FT_Done_Glyph = AscFonts.FT_Done_Glyph;
var FT_Outline_Decompose = AscFonts.FT_Outline_Decompose;
var FT_Render_Glyph = AscFonts.FT_Render_Glyph;
var raster_memory = AscFonts.raster_memory;
function CCMapIndex()
{
this.index = 0;
......
"use strict";
// Import
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 AscBrowser = AscCommon.AscBrowser;
var g_bIsAppleDevices = AscBrowser.isAppleDevices;
......
"use strict";
(function(window, undefined){
function _FT_Common()
{
......@@ -41817,3 +41819,26 @@ function FT_CMap_New(clazz, init_data, charmap)
return cmap;
}
//--------------------------------------------------------export----------------------------------------------------
window['AscFonts'] = window['AscFonts'] || {};
window['AscFonts'].FT_Common = FT_Common;
window['AscFonts'].FT_Stream = FT_Stream;
window['AscFonts'].g_memory = g_memory;
window['AscFonts'].FT_Get_Sfnt_Table = FT_Get_Sfnt_Table;
window['AscFonts'].FT_BBox = FT_BBox;
window['AscFonts'].FT_Matrix = FT_Matrix;
window['AscFonts'].FT_Open_Args = FT_Open_Args;
window['AscFonts'].__FT_CharmapRec = __FT_CharmapRec;
window['AscFonts'].FT_Outline_Decompose = FT_Outline_Decompose;
window['AscFonts'].FT_Library = FT_Library;
window['AscFonts'].FT_Set_Char_Size = FT_Set_Char_Size;
window['AscFonts'].FT_Get_Char_Index = FT_Get_Char_Index;
window['AscFonts'].FT_Set_Charmap = FT_Set_Charmap;
window['AscFonts'].FT_Glyph_Get_CBox = FT_Glyph_Get_CBox;
window['AscFonts'].FT_Get_Glyph = FT_Get_Glyph;
window['AscFonts'].FT_Done_Glyph = FT_Done_Glyph;
window['AscFonts'].FT_Load_Glyph = FT_Load_Glyph;
window['AscFonts'].FT_Set_Transform = FT_Set_Transform;
window['AscFonts'].FT_Render_Glyph = FT_Render_Glyph;
window['AscFonts'].raster_memory = raster_memory;
})(window);
"use strict";
"use strict";
// Import
var FT_Common = AscFonts.FT_Common;
var FT_Stream = AscFonts.FT_Stream;
var g_memory = AscFonts.g_memory;
var charA = "A".charCodeAt(0);
var charZ = "Z".charCodeAt(0);
......
......@@ -19,6 +19,9 @@ window.document = document;
window["Asc"] = {};
var Asc = window["Asc"];
window["AscFonts"] = {};
var AscFonts = window["AscFonts"];
window["AscCommon"] = {};
var AscCommon = window["AscCommon"];
......
"use strict";
// Import
var g_memory = AscFonts.g_memory;
var c_oAscShdClear = Asc.c_oAscShdClear;
var c_oAscColor = Asc.c_oAscColor;
var c_oAscFill = Asc.c_oAscFill;
......
"use strict";
var g_memory = AscFonts.g_memory;
function CPageMeta()
{
......
"use strict";
// Import
var g_memory = AscFonts.g_memory;
var fontslot_ASCII = 0x00;
var fontslot_EastAsia = 0x01;
var fontslot_CS = 0x02;
......
"use strict";
// Import
var g_memory = AscFonts.g_memory;
var align_Right = AscCommon.align_Right;
var align_Left = AscCommon.align_Left;
var align_Center = AscCommon.align_Center;
......
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