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

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61052 954022d7-b5bf-4e40-9824-e11837661b57
parent 5d87917f
...@@ -1655,8 +1655,6 @@ CFontSelectList.prototype = ...@@ -1655,8 +1655,6 @@ CFontSelectList.prototype =
if (undefined == _fontFamily) if (undefined == _fontFamily)
return _ret_obj; return _ret_obj;
var _info = window.g_font_infos[window.g_map_font_index[_fontFamily.Name]];
var oFontStyle = FontStyle.FontStyleRegular; var oFontStyle = FontStyle.FontStyleRegular;
if (!italic && bold) if (!italic && bold)
oFontStyle = FontStyle.FontStyleBold; oFontStyle = FontStyle.FontStyleBold;
...@@ -1665,6 +1663,8 @@ CFontSelectList.prototype = ...@@ -1665,6 +1663,8 @@ CFontSelectList.prototype =
else if (italic && bold) else if (italic && bold)
oFontStyle = FontStyle.FontStyleBoldItalic; oFontStyle = FontStyle.FontStyleBoldItalic;
var _info = g_fontApplication.GetFontInfo(_fontFamily.Name, oFontStyle);
var _id = _info.GetFontID(window.g_font_loader, oFontStyle); var _id = _info.GetFontID(window.g_font_loader, oFontStyle);
var _select = this.List[this.ListMap[_id.id]]; var _select = this.List[this.ListMap[_id.id]];
...@@ -1794,6 +1794,11 @@ CFontSelectList.prototype = ...@@ -1794,6 +1794,11 @@ CFontSelectList.prototype =
} }
} }
if (_name == "")
{
_name = g_fontApplication.GetFontInfoName(_lang.DefaultFont);
}
return _name; return _name;
}, },
......
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