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

1) баги в субпиксельном хинтинге

2) баг с ариалом на 110ом размере (MulDiv)
3) печать в пдф: (символы > 0xFFFF и faceIndex > 0)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68874 954022d7-b5bf-4e40-9824-e11837661b57
parent ae8939e8
......@@ -1631,7 +1631,9 @@ function CFontFile(fileName, faceIndex)
return;
}
if (this.m_pFace.family_name == "MS Mincho" || this.m_pFace.family_name == "Castellar")
if (this.m_pFace.family_name == "MS Mincho" ||
this.m_pFace.family_name == "Castellar" ||
this.m_pFace.family_name == "Microsoft JhengHei UI Light")
this.HintsSupport = false;
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -1259,11 +1259,11 @@ CMetafile.prototype =
this.Memory.WriteLong(style);
}
},
FillText : function(x,y,text)
FillText : function(x,y,text,isNoReplaceAttack)
{
this.Memory.WriteByte(CommandType.ctDrawText);
if (null != this.LastFontOriginInfo.Replace && 1 == text.length)
if ((true !== isNoReplaceAttack) && null != this.LastFontOriginInfo.Replace && 1 == text.length)
{
var _code = text.charCodeAt(0);
_code = g_fontApplication.GetReplaceGlyph(_code, this.LastFontOriginInfo.Replace);
......@@ -1276,17 +1276,23 @@ CMetafile.prototype =
},
FillTextCode : function(x,y,code)
{
var _font_info = window.g_font_infos[window.g_map_font_index[this.m_oFont.Name]];
var _is_face_index_no_0 = (_font_info.faceIndexR <= 0 && _font_info.faceIndexI <= 0 && _font_info.faceIndexB <= 0 && _font_info.faceIndexBI <= 0);
var _font_info = window.g_font_infos[window.g_map_font_index[this.m_oFont.Name]];
if (code < 0xFFFF && (_is_face_index_no_0 || window["native"] !== undefined))
if (code < 0xFFFF)
return this.FillText(x, y, String.fromCharCode(code));
else
{
var codePt = code - 0x10000;
return this.FillText(x, y, String.fromCharCode(0xD800 + (codePt >> 10), 0xDC00 + (codePt & 0x3FF)), true);
}
if (window["native"] !== undefined)
{
// TODO:
return;
}
var _is_face_index_no_0 = (_font_info.faceIndexR <= 0 && _font_info.faceIndexI <= 0 && _font_info.faceIndexB <= 0 && _font_info.faceIndexBI <= 0);
var _old_pos = this.Memory.pos;
......
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