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
...@@ -911,6 +911,15 @@ DrawingContext.prototype = { ...@@ -911,6 +911,15 @@ DrawingContext.prototype = {
return this._calcTextMetrics(w * r, w2 * r, fm, r); 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) { fillText: function (text, x, y, maxWidth, charWidths, angle) {
function fillGlyph(pGlyph,fmgr) { function fillGlyph(pGlyph,fmgr) {
var nW = pGlyph.oBitmap.nWidth; 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