Commit cb9dbe6a authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

ASCWngds3

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56523 954022d7-b5bf-4e40-9824-e11837661b57
parent f3511c98
...@@ -992,34 +992,7 @@ function CImage(src) ...@@ -992,34 +992,7 @@ function CImage(src)
this.Status = ImageLoadStatus.Complete; this.Status = ImageLoadStatus.Complete;
} }
// ALL_FONTS_PART ------------------------------------------------------------- var g_fonts_streams = [];
(function(document){
var __len_files = window["__fonts_files"].length;
window.g_font_files = new Array(__len_files);
for (var i = 0; i < __len_files; i++)
{
window.g_font_files[i] = new CFontFileLoader(window["__fonts_files"][i]);
}
var __len_infos = window["__fonts_infos"].length;
window.g_font_infos = new Array(__len_infos);
window.g_map_font_index = {};
for (var i = 0; i < __len_infos; i++)
{
var _info = window["__fonts_infos"][i];
window.g_font_infos[i] = new CFontInfo(_info[0], i, 0, _info[1], _info[2], _info[3], _info[4], _info[5], _info[6], _info[7], _info[8]);
window.g_map_font_index[_info[0]] = i;
}
// удаляем временные переменные
delete window["__fonts_files"];
delete window["__fonts_infos"];
})(window.document);
var charA = "A".charCodeAt(0); var charA = "A".charCodeAt(0);
var charZ = "Z".charCodeAt(0); var charZ = "Z".charCodeAt(0);
...@@ -1321,8 +1294,49 @@ function CreateFontData4(szSrc) ...@@ -1321,8 +1294,49 @@ function CreateFontData4(szSrc)
return stream; return stream;
} }
// ALL_FONTS_PART -------------------------------------------------------------
(function(document){
var __len_files = window["__fonts_files"].length;
window.g_font_files = new Array(__len_files);
for (var i = 0; i < __len_files; i++)
{
window.g_font_files[i] = new CFontFileLoader(window["__fonts_files"][i]);
}
var __len_infos = window["__fonts_infos"].length;
window.g_font_infos = new Array(__len_infos);
window.g_map_font_index = {};
for (var i = 0; i < __len_infos; i++)
{
var _info = window["__fonts_infos"][i];
window.g_font_infos[i] = new CFontInfo(_info[0], i, 0, _info[1], _info[2], _info[3], _info[4], _info[5], _info[6], _info[7], _info[8]);
window.g_map_font_index[_info[0]] = i;
}
/////////////////////////////////////////////////////////////////////
// а вот это наш шрифт - аналог wingdings3
var _wngds3 = new CFontFileLoader("ASC.ttf");
_wngds3.Status = 0;
var _ind_wngds3 = g_fonts_streams.length;
g_fonts_streams[_ind_wngds3] = CreateFontData2("AAEAAAARAQAABAAQTFRTSLRRURgAAAK0AAAAM09TLzI6A+rhAAABmAAAAGBWRE1Yb8J3OwAAAugAAAXgY21hcAAX8LEAAA2wAAAAQGN2dCBAYzlRAAAVdAAAAnhmcGdtlK49CwAADfAAAAXSZ2FzcAAXAAkAADAQAAAAEGdseWb5lSApAAAX7AAAEYBoZG14G8C9WwAACMgAAAToaGVhZAXhPlQAAAEcAAAANmhoZWEPHQR6AAABVAAAACRobXR4D30eZQAAAfgAAAC8bG9jYVQqWSQAAClsAAAAYG1heHAIdAYXAAABeAAAACBuYW1loyGViQAAKcwAAAP3cG9zdAue6lEAAC3EAAACS3ByZXDb2mChAAATxAAAAbAAAQAAAAEAAFASZh9fDzz1ABsIAAAAAADPTriwAAAAAM+3OtsAgAAABy4FyAAAAAwAAQAAAAAAAAABAAAHbP5QAAAIAACA/foHLgABAAAAAAAAAAAAAAAAAAAALwABAAAALwAXAAQAFwAEAAIAEAAUAEMAAAfoBdIAAQABAAMF5gGQAAUACATOBM4AAAMWBM4EzgAAAxYAZAMgDAAFBAECAQgHBwcHAAAAAAAAAAAAAAAAAAAAAE1TICAAQPAg8EsGKwGkADEHbAGwgAAAAAAAAAD/////AAAAIAAABAAAgAAAAAAE0gAACAAAAAchAK0HIQCtBG8AxQRvAMUFpACtBaQArQWkAK0FpACtByEArQchAK0EbwDFBG8AxQaNAK0GjQCtBG8AxQRvAMUEbwCtBG8AxQRvAK0EbwCtBG8AxQRvAMUEbwCtBG8ArQRvAK0HIQCtByEArQWvAMUFrwCUBa8AxQWvAJQH2gCtB9oArQchAK0HIQCtByEArQchAK0HIQCtByEArQchAK0HIQCtByEAr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m5sZWZ0C3JldHVybnJpZ2h0C25ld2xpbmVsZWZ0DG5ld2xpbmVyaWdodAphMm9wbGVmdHJ0CWEyb3Bkd251cA1hMm9wdGFibGVmdHJ0DGEyb3B0YWJkd251cAthMnBhcmxsbGVmdAxhMnBhcmxscmlnaHQJYTJwYXJsbHVwC2EycGFybGxkb3duAAAAAAMACAACABAAAf//AAM=");
_wngds3.SetStreamIndex(_ind_wngds3);
window.g_font_files[window.g_font_files.length] = _wngds3;
var _ind_info_wngds3 = window.g_font_infos.length;
window.g_font_infos[_ind_info_wngds3] = new CFontInfo("ASCWngds3", 0, FONT_TYPE_ADDITIONAL, window.g_font_files.length - 1, 0, -1, -1, -1, -1, -1, -1);
window.g_map_font_index["ASCWngds3"] = _ind_info_wngds3;
/////////////////////////////////////////////////////////////////////
// удаляем временные переменные
delete window["__fonts_files"];
delete window["__fonts_infos"];
})(window.document);
var g_fonts_streams = [];
// сначала хотел писать "вытеснение" из этого мапа. // сначала хотел писать "вытеснение" из этого мапа.
// но тогда нужно хранить base64 строки. Это не круто. По памяти - даже // но тогда нужно хранить base64 строки. Это не круто. По памяти - даже
// выигрыш будет. Не особо то шрифты жмутся lzw или deflate // выигрыш будет. Не особо то шрифты жмутся lzw или deflate
......
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
this.AddLoadFonts(this.fontInfos[this.map_font_index["Arial"]], 0x0F); this.AddLoadFonts(this.fontInfos[this.map_font_index["Arial"]], 0x0F);
this.AddLoadFonts(this.fontInfos[this.map_font_index["Symbol"]], 0x0F); this.AddLoadFonts(this.fontInfos[this.map_font_index["Symbol"]], 0x0F);
this.AddLoadFonts(this.fontInfos[this.map_font_index["Wingdings"]], 0x0F); this.AddLoadFonts(this.fontInfos[this.map_font_index["Wingdings"]], 0x0F);
this.AddLoadFonts(this.fontInfos[this.map_font_index["Wingdings 3"]], 0x0F); //this.AddLoadFonts(this.fontInfos[this.map_font_index["Wingdings 3"]], 0x0F);
this.AddLoadFonts(this.fontInfos[this.map_font_index["Courier New"]], 0x0F); this.AddLoadFonts(this.fontInfos[this.map_font_index["Courier New"]], 0x0F);
//if (is_default === true) //if (is_default === true)
{ {
......
...@@ -6401,7 +6401,7 @@ Paragraph.prototype = ...@@ -6401,7 +6401,7 @@ Paragraph.prototype =
var X0 = TempWidth / 2 - TempRealWidth / 2; var X0 = TempWidth / 2 - TempRealWidth / 2;
pGraphics.SetFont( {FontFamily: { Name : "Wingdings 3", Index : -1 }, FontSize: 10, Italic: false, Bold : false} ); pGraphics.SetFont( {FontFamily: { Name : "ASCWngds3", Index : -1 }, FontSize: 10, Italic: false, Bold : false} );
if ( X0 > 0 ) if ( X0 > 0 )
pGraphics.FillText2( X1 + X0, Y, String.fromCharCode( tab_Symbol ), 0, TempWidth ); pGraphics.FillText2( X1 + X0, Y, String.fromCharCode( tab_Symbol ), 0, TempWidth );
......
...@@ -2544,7 +2544,7 @@ ParaNewLine.prototype = ...@@ -2544,7 +2544,7 @@ ParaNewLine.prototype =
{ {
case break_Line: case break_Line:
{ {
Context.SetFont( {FontFamily: { Name : "Wingdings 3", Index : -1 }, FontSize: 10, Italic: false, Bold : false} ); Context.SetFont( {FontFamily: { Name : "ASCWngds3", Index : -1 }, FontSize: 10, Italic: false, Bold : false} );
Context.FillText( X, Y, String.fromCharCode( 0x0038/*0x21B5*/ ) ); Context.FillText( X, Y, String.fromCharCode( 0x0038/*0x21B5*/ ) );
break; break;
} }
...@@ -2591,7 +2591,7 @@ ParaNewLine.prototype = ...@@ -2591,7 +2591,7 @@ ParaNewLine.prototype =
this.Width = 0; this.Width = 0;
this.Height = 0; this.Height = 0;
Context.SetFont( {FontFamily: { Name : "Wingdings 3", Index : -1 }, FontSize: 10, Italic: false, Bold : false} ); Context.SetFont( {FontFamily: { Name : "ASCWngds3", Index : -1 }, FontSize: 10, Italic: false, Bold : false} );
var Temp = Context.Measure( String.fromCharCode( 0x0038 ) ); var Temp = Context.Measure( String.fromCharCode( 0x0038 ) );
// Почему-то в шрифте Wingding 3 символ 0x0038 имеет неправильную ширину // Почему-то в шрифте Wingding 3 символ 0x0038 имеет неправильную ширину
...@@ -3035,7 +3035,7 @@ ParaTab.prototype = ...@@ -3035,7 +3035,7 @@ ParaTab.prototype =
{ {
var X0 = this.Width / 2 - this.RealWidth / 2; var X0 = this.Width / 2 - this.RealWidth / 2;
Context.SetFont( {FontFamily: { Name : "Wingdings 3", Index : -1 }, FontSize: 10, Italic: false, Bold : false} ); Context.SetFont( {FontFamily: { Name : "ASCWngds3", Index : -1 }, FontSize: 10, Italic: false, Bold : false} );
if ( X0 > 0 ) if ( X0 > 0 )
Context.FillText2( X + X0, Y, String.fromCharCode( tab_Symbol ), 0, this.Width ); Context.FillText2( X + X0, Y, String.fromCharCode( tab_Symbol ), 0, this.Width );
...@@ -3046,7 +3046,7 @@ ParaTab.prototype = ...@@ -3046,7 +3046,7 @@ ParaTab.prototype =
Measure : function (Context) Measure : function (Context)
{ {
Context.SetFont( {FontFamily: { Name : "Wingdings 3", Index : -1 }, FontSize: 10, Italic: false, Bold : false} ); Context.SetFont( {FontFamily: { Name : "ASCWngds3", Index : -1 }, FontSize: 10, Italic: false, Bold : false} );
this.RealWidth = Context.Measure( String.fromCharCode( tab_Symbol ) ).Width; this.RealWidth = Context.Measure( String.fromCharCode( tab_Symbol ) ).Width;
}, },
......
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