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

определение fontSlot для символов больше 0xFFFF

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68140 954022d7-b5bf-4e40-9824-e11837661b57
parent cbf0baa0
......@@ -1260,7 +1260,23 @@ var g_oLcidIdToNameMap = {};
this.Get_FontClass = function(nUnicode, nHint, nEastAsia_lcid, bCS, bRTL)
{
var _glyph_slot = fontslot_ASCII;
if (nHint != fonthint_EastAsia)
if (nUnicode > 0xFFFF)
{
if ((nUnicode >= 0x20000 && nUnicode <= 0x2A6DF) ||
(nUnicode >= 0x2F800 && nUnicode <= 0x2FA1F))
{
_glyph_slot = fontslot_EastAsia;
}
else if (nUnicode >= 0x1D400 && nUnicode <= 0x1D7FF)
{
_glyph_slot = fontslot_ASCII;
}
else
{
_glyph_slot = fontslot_HAnsi;
}
}
else if (nHint != fonthint_EastAsia)
{
_glyph_slot = this.DetectData.data[nUnicode];
}
......
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