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

FillText/Measure CODE

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59386 954022d7-b5bf-4e40-9824-e11837661b57
parent 85d670ca
......@@ -155,7 +155,7 @@ ParaText.prototype =
if ( true === this.Is_NBSP() && editor && editor.ShowParaMarks )
Context.FillText(X, Y, String.fromCharCode(0x00B0));
else
Context.FillText(X, Y, String.fromCharCode(ResultCharCode));
Context.FillTextCode(X, Y, ResultCharCode);
},
Measure : function(Context, TextPr)
......@@ -207,7 +207,7 @@ ParaText.prototype =
FontKoef = smallcaps_Koef;
Context.SetFontSlot(FontSlot, FontKoef);
var Temp = Context.Measure(String.fromCharCode(ResultCharCode));
var Temp = Context.MeasureCode(ResultCharCode);
var ResultWidth = (Math.max((Temp.Width + TextPr.Spacing), 0) * TEXTWIDTH_DIVIDER) | 0;
......
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