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

формулы в ios

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61204 954022d7-b5bf-4e40-9824-e11837661b57
parent a78d64e5
......@@ -186,7 +186,15 @@ CTextMeasurerWrapper.prototype =
_code = g_fontApplication.GetReplaceGlyph(_code, this.LastFontOriginInfo.Replace);
var _bounds = this.Measurer["GetDrawingBox"](_code);
return { Width : _bounds[0], Ascent : _bounds[4], Height : (_bounds[4] - _bounds[3]), WidthG: (_bounds[2] - _bounds[1]) };
return {
Width : _bounds[0],
Ascent : _bounds[4],
Height : _bounds[4] - _bounds[3],
WidthG : _bounds[2] - _bounds[1],
rasterOffsetX: 0,
rasterOffsetY: 0
};
},
MeasureCode : function(lUnicode)
......@@ -203,7 +211,15 @@ CTextMeasurerWrapper.prototype =
lUnicode = g_fontApplication.GetReplaceGlyph(lUnicode, this.LastFontOriginInfo.Replace);
var _bounds = this.Measurer["GetDrawingBox"](lUnicode);
return { Width : _bounds[0], Ascent : _bounds[4], Height : (_bounds[4] - _bounds[3]), WidthG: (_bounds[2] - _bounds[1]) };
return {
Width : _bounds[0],
Ascent : _bounds[4],
Height : _bounds[4] - _bounds[3],
WidthG : _bounds[2] - _bounds[1],
rasterOffsetX: 0,
rasterOffsetY: 0
};
},
GetAscender : function()
......
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