Commit 384f6c85 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

добавил функцию получения высоты текста

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47502 954022d7-b5bf-4e40-9824-e11837661b57
parent b3e52c98
......@@ -910,7 +910,16 @@ DrawingContext.prototype = {
w2 = w - tmp.fAdvanceX + tmp.oBBox.fMaxX - tmp.oBBox.fMinX + 1;
return this._calcTextMetrics(w * r, w2 * r, fm, r);
},
getHeightText: function()
{
var fm = this.fmgrGraphics[0];
var UnitsPerEm = fm.m_lUnits_Per_Em;
var Height = fm.m_lLineHeight;
var setUpSize = this.font.FontSize;
return Height * setUpSize / UnitsPerEm;
},
fillText: function (text, x, y, maxWidth, charWidths, angle) {
function fillGlyph(pGlyph,fmgr) {
var nW = pGlyph.oBitmap.nWidth;
......
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