Commit 33a14bfe authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix set FontRenderingMode

parent 72202ee6
......@@ -254,6 +254,7 @@ function asc_docs_api(name)
this.isImageChangeUrl = false;
this.isShapeImageChangeUrl = false;
this.tmpFontRenderingMode = null;
this.FontAsyncLoadType = 0;
this.FontAsyncLoadParam = null;
......@@ -1949,6 +1950,11 @@ asc_docs_api.prototype.asc_setAdvancedOptions = function(idOption, option) {
};
asc_docs_api.prototype.SetFontRenderingMode = function(mode)
{
if (!this.isLoadFullApi) {
this.tmpFontRenderingMode = mode;
return;
}
if (c_oAscFontRenderingModeType.noHinting === mode)
AscCommon.SetHintsProps(false, false);
else if (c_oAscFontRenderingModeType.hinting === mode)
......@@ -7064,6 +7070,10 @@ asc_docs_api.prototype._onEndLoadSdk = function() {
this.CreateComponents();
this.WordControl.Init();
if (this.tmpFontRenderingMode) {
this.SetFontRenderingMode(this.tmpFontRenderingMode);
}
this.asc_setViewMode(this.isViewMode);
this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw);
......
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