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

поддержка пустого AllFonts

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67901 954022d7-b5bf-4e40-9824-e11837661b57
parent 2e7aff51
...@@ -1375,26 +1375,29 @@ CFontSelectList.prototype = ...@@ -1375,26 +1375,29 @@ CFontSelectList.prototype =
this.IsInit = true; this.IsInit = true;
// read from stream if (window["g_fonts_selection_bin"] != "")
var _ft_stream = CreateFontData2(window["g_fonts_selection_bin"]); {
var _file_stream = new FileStream(_ft_stream.data, _ft_stream.size); // read from stream
var _ft_stream = CreateFontData2(window["g_fonts_selection_bin"]);
var count = _file_stream.GetLong(); var _file_stream = new FileStream(_ft_stream.data, _ft_stream.size);
for (var i = 0; i < count; i++)
{ var count = _file_stream.GetLong();
var _fs = new CFontSelect(); for (var i = 0; i < count; i++)
_fs.fromStream(_file_stream); {
var _fs = new CFontSelect();
// корректируем плохие популярные шрифты _fs.fromStream(_file_stream);
if (_fs.m_wsFontName == "Droid Sans Fallback")
{ // корректируем плохие популярные шрифты
if ((_fs.m_ulCodePageRange1 & (1 << 19)) == (1 << 19)) if (_fs.m_wsFontName == "Droid Sans Fallback")
_fs.m_ulCodePageRange1 -= (1 << 19); {
if ((_fs.m_ulCodePageRange1 & (1 << 19)) == (1 << 19))
_fs.m_ulCodePageRange1 -= (1 << 19);
}
this.List.push(_fs);
this.ListMap[_fs.m_wsFontPath] = this.List.length - 1;
} }
}
this.List.push(_fs);
this.ListMap[_fs.m_wsFontPath] = this.List.length - 1;
}
// add languages // add languages
// 1) arabic // 1) arabic
......
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