Commit 6afa2a3a authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT

Теперь шрифты генерируются автоматически при запуске сервера.


git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68340 954022d7-b5bf-4e40-9824-e11837661b57
parent 3c770dcb
...@@ -172,10 +172,7 @@ ...@@ -172,10 +172,7 @@
"../../Common/3rdparty/XRegExp/xregexp-all-min.js" "../../Common/3rdparty/XRegExp/xregexp-all-min.js"
], ],
"map": "sdk-all.js.map", "map": "sdk-all.js.map",
"log": "../../Word/Build/Log", "log": "../../Word/Build/Log"
"define": [
"ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT=true"
]
}, },
"defines": { "defines": {
"src": [], "src": [],
......
...@@ -179,10 +179,7 @@ ...@@ -179,10 +179,7 @@
"../../Common/3rdparty/perfect-scrollbar/perfect-scrollbar.js" "../../Common/3rdparty/perfect-scrollbar/perfect-scrollbar.js"
], ],
"map": "sdk-all.js.map", "map": "sdk-all.js.map",
"log": "../../Excel/Build/Log", "log": "../../Excel/Build/Log"
"define": [
"ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT=true"
]
}, },
"defines": { "defines": {
"src": [ "src": [
......
...@@ -160,10 +160,7 @@ ...@@ -160,10 +160,7 @@
"../../Common/3rdparty/jsrsasign/jsrsasign-latest-all-min.js" "../../Common/3rdparty/jsrsasign/jsrsasign-latest-all-min.js"
], ],
"map": "sdk-all.js.map", "map": "sdk-all.js.map",
"log": "../../PowerPoint/Build/Log", "log": "../../PowerPoint/Build/Log"
"define": [
"ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT=true"
]
}, },
"defines": { "defines": {
"src": [ "src": [
......
...@@ -165,10 +165,7 @@ ...@@ -165,10 +165,7 @@
"../../Common/3rdparty/jsrsasign/jsrsasign-latest-all-min.js" "../../Common/3rdparty/jsrsasign/jsrsasign-latest-all-min.js"
], ],
"map": "sdk-all.js.map", "map": "sdk-all.js.map",
"log": "../../Word/Build/Log", "log": "../../Word/Build/Log"
"define": [
"ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT=true"
]
}, },
"defines": { "defines": {
"src": [ "src": [
...@@ -201,15 +198,6 @@ ...@@ -201,15 +198,6 @@
"src": "sdk-all.js", "src": "sdk-all.js",
"dest": "<%= pkg.menu_path %>/Word/" "dest": "<%= pkg.menu_path %>/Word/"
}, },
"fonts": {
"expand": true,
"cwd": "../../Fonts/",
"src": [
"js/*.js",
"odttf/*.js"
],
"dest": "<%= pkg.menu_path %>/Fonts/"
},
"doc": { "doc": {
"expand": true, "expand": true,
"cwd": "../../Word/", "cwd": "../../Word/",
...@@ -220,7 +208,6 @@ ...@@ -220,7 +208,6 @@
"expand": true, "expand": true,
"cwd": "../../Common/", "cwd": "../../Common/",
"src": [ "src": [
"AllFonts.js",
"spellcheckapisettings.js", "spellcheckapisettings.js",
"commonDefines.js", "commonDefines.js",
"apiCommon.js", "apiCommon.js",
......
...@@ -181,10 +181,7 @@ ...@@ -181,10 +181,7 @@
"../../Common/3rdparty/perfect-scrollbar/perfect-scrollbar.js" "../../Common/3rdparty/perfect-scrollbar/perfect-scrollbar.js"
], ],
"map": "sdk-all.js.map", "map": "sdk-all.js.map",
"log": "../../Excel/Build/Log", "log": "../../Excel/Build/Log"
"define": [
"ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT=true"
]
}, },
"defines": { "defines": {
"src": [ "src": [
......
...@@ -162,10 +162,7 @@ ...@@ -162,10 +162,7 @@
"../../Common/3rdparty/jsrsasign/jsrsasign-latest-all-min.js" "../../Common/3rdparty/jsrsasign/jsrsasign-latest-all-min.js"
], ],
"map": "sdk-all.js.map", "map": "sdk-all.js.map",
"log": "../../PowerPoint/Build/Log", "log": "../../PowerPoint/Build/Log"
"define": [
"ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT=true"
]
}, },
"defines": { "defines": {
"src": [ "src": [
......
...@@ -167,10 +167,7 @@ ...@@ -167,10 +167,7 @@
"../../Common/3rdparty/jsrsasign/jsrsasign-latest-all-min.js" "../../Common/3rdparty/jsrsasign/jsrsasign-latest-all-min.js"
], ],
"map": "sdk-all.js.map", "map": "sdk-all.js.map",
"log": "../../Word/Build/Log", "log": "../../Word/Build/Log"
"define": [
"ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT=true"
]
}, },
"defines": { "defines": {
"src": [ "src": [
...@@ -203,15 +200,6 @@ ...@@ -203,15 +200,6 @@
"src": "sdk-all.js", "src": "sdk-all.js",
"dest": "<%= pkg.menu_path %>/Word/" "dest": "<%= pkg.menu_path %>/Word/"
}, },
"fonts": {
"expand": true,
"cwd": "../../Fonts/",
"src": [
"js/*.js",
"odttf/*.js"
],
"dest": "<%= pkg.menu_path %>/Fonts/"
},
"doc": { "doc": {
"expand": true, "expand": true,
"cwd": "../../Word/", "cwd": "../../Word/",
...@@ -222,7 +210,6 @@ ...@@ -222,7 +210,6 @@
"expand": true, "expand": true,
"cwd": "../../Common/", "cwd": "../../Common/",
"src": [ "src": [
"AllFonts.js",
"spellcheckapisettings.js", "spellcheckapisettings.js",
"commonDefines.js", "commonDefines.js",
"apiCommon.js", "apiCommon.js",
......
This diff is collapsed.
This diff is collapsed.
...@@ -4,7 +4,6 @@ copy "D:\Projects\activex\AVS\Sources\TeamlabOffice\trunk\OfficeWeb\Word\index.h ...@@ -4,7 +4,6 @@ copy "D:\Projects\activex\AVS\Sources\TeamlabOffice\trunk\OfficeWeb\Word\index.h
copy "D:\Projects\wwwrootOffice\apps\documenteditor\main\app.js" "D:\Projects\wwwrootOffice\apps\documenteditor\main\app_new.js" copy "D:\Projects\wwwrootOffice\apps\documenteditor\main\app.js" "D:\Projects\wwwrootOffice\apps\documenteditor\main\app_new.js"
copy "D:\Projects\activex\AVS\Sources\TeamlabOffice\trunk\OfficeWeb\Word\app.js" "D:\Projects\wwwrootOffice\apps\documenteditor\main\app.js" copy "D:\Projects\activex\AVS\Sources\TeamlabOffice\trunk\OfficeWeb\Word\app.js" "D:\Projects\wwwrootOffice\apps\documenteditor\main\app.js"
copy "D:\Projects\wwwrootOffice\apps\spreadsheeteditor\main\index.html" "D:\Projects\wwwrootOffice\apps\spreadsheeteditor\main\index_new.html" copy "D:\Projects\wwwrootOffice\apps\spreadsheeteditor\main\index.html" "D:\Projects\wwwrootOffice\apps\spreadsheeteditor\main\index_new.html"
copy "D:\Projects\activex\AVS\Sources\TeamlabOffice\trunk\OfficeWeb\Excel\index.html" "D:\Projects\wwwrootOffice\apps\spreadsheeteditor\main\index.html" copy "D:\Projects\activex\AVS\Sources\TeamlabOffice\trunk\OfficeWeb\Excel\index.html" "D:\Projects\wwwrootOffice\apps\spreadsheeteditor\main\index.html"
...@@ -16,3 +15,6 @@ copy "D:\Projects\activex\AVS\Sources\TeamlabOffice\trunk\OfficeWeb\PowerPoint\a ...@@ -16,3 +15,6 @@ copy "D:\Projects\activex\AVS\Sources\TeamlabOffice\trunk\OfficeWeb\PowerPoint\a
copy "D:\Projects\wwwrootOffice\apps\presentationeditor\main\index.html" "D:\Projects\wwwrootOffice\apps\presentationeditor\main\index_new.html" copy "D:\Projects\wwwrootOffice\apps\presentationeditor\main\index.html" "D:\Projects\wwwrootOffice\apps\presentationeditor\main\index_new.html"
copy "D:\Projects\activex\AVS\Sources\TeamlabOffice\trunk\OfficeWeb\PowerPoint\index.html" "D:\Projects\wwwrootOffice\apps\presentationeditor\main\index.html" copy "D:\Projects\activex\AVS\Sources\TeamlabOffice\trunk\OfficeWeb\PowerPoint\index.html" "D:\Projects\wwwrootOffice\apps\presentationeditor\main\index.html"
copy "D:\Projects\wwwrootOffice\apps\common\main\lib\component\ComboBoxFonts.js" "D:\Projects\wwwrootOffice\apps\common\main\lib\component\ComboBoxFonts_new.js"
copy "D:\Projects\activex\AVS\Sources\TeamlabOffice\trunk\OfficeWeb\Common\ComboBoxFonts.js" "D:\Projects\wwwrootOffice\apps\common\main\lib\component\ComboBoxFonts.js"
...@@ -278,9 +278,6 @@ function ZBase32Encoder() ...@@ -278,9 +278,6 @@ function ZBase32Encoder()
}; };
} }
/** @define {boolean} */
var ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT = false;
var bIsLocalFontsUse = false; var bIsLocalFontsUse = false;
function _is_support_cors() function _is_support_cors()
...@@ -314,8 +311,7 @@ function postLoadScript(scriptName) ...@@ -314,8 +311,7 @@ function postLoadScript(scriptName)
if (_files[i].Id == _mess) if (_files[i].Id == _mess)
{ {
var bIsUseOrigF = false; var bIsUseOrigF = false;
if (ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT && // проставляется в true на этапе сборки if (_files[i].CanUseOriginalFormat && // false if load embedded fonts
_files[i].CanUseOriginalFormat && // false if load embedded fonts
bIsSupportOriginalFormatFonts) // false if work on ie9 bIsSupportOriginalFormatFonts) // false if work on ie9
bIsUseOrigF = true; bIsUseOrigF = true;
...@@ -502,8 +498,7 @@ CFontFileLoader.prototype.LoadFontAsync = function(basePath, _callback, isEmbed) ...@@ -502,8 +498,7 @@ CFontFileLoader.prototype.LoadFontAsync = function(basePath, _callback, isEmbed)
return; return;
} }
if (ASC_DOCS_API_USE_FONTS_ORIGINAL_FORMAT && // проставляется в true на этапе сборки if (this.CanUseOriginalFormat && // false if load embedded fonts
this.CanUseOriginalFormat && // false if load embedded fonts
bIsSupportOriginalFormatFonts) // false if work on ie9 bIsSupportOriginalFormatFonts) // false if work on ie9
{ {
this.LoadFontAsync2(basePath, _callback); this.LoadFontAsync2(basePath, _callback);
......
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