Commit a9e294ef authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Переделал рассчет высоты на usWinAscent и usWinDescent.

Баг http://bugzserver/show_bug.cgi?id=24806

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56871 954022d7-b5bf-4e40-9824-e11837661b57
parent 6feaf098
......@@ -812,8 +812,14 @@ DrawingContext.prototype = {
var face = fm.m_pFont.m_pFace;
res.nat_scale = face.header.Units_Per_EM;
res.nat_y1 = face.header.yMax;
res.nat_y2 = face.header.yMin;
if (face.os2) {
res.nat_y1 = face.os2.usWinAscent;
res.nat_y2 = -face.os2.usWinDescent;
} else {
res.nat_y1 = face.header.yMax;
res.nat_y2 = face.header.yMin;
}
return res;
},
......
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