Commit 419a42bc authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Высоту для наклонного текста нужно делать кратной 1pt

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58857 954022d7-b5bf-4e40-9824-e11837661b57
parent cdf5f52a
......@@ -390,20 +390,14 @@
}
}
var bound = {};
bound.dx = dx;
bound.dy = dy;
bound.x = x;
bound.y = y;
bound.sx = sx;
bound.sw = sw;
var bound = { dx: dx, dy: dy, x: x, y: y, sx: sx, sw: sw, height: 0 };
if (angle === 90 || angle === -90) {
bound.height = textW;
} else {
bound.height = Math.abs(Math.sin(angle / 180.0 * Math.PI) * textW) + (mul) * tm.height;
// Делаем кратным 1pt
bound.height = asc_calcnpt(bound.height, 96);
}
return bound;
......
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