From b830bb648cd4ae307cb31a6f31df9888562852c9 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 11 Nov 2022 15:03:51 +0300 Subject: [PATCH] Change font family name --- apps/api/documents/api.js | 2 +- apps/documenteditor/main/app/controller/Main.js | 6 +++--- apps/presentationeditor/main/app/controller/Main.js | 6 +++--- apps/spreadsheeteditor/main/app/controller/Main.js | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 7956c7737..a91876013 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -194,7 +194,7 @@ } / false / true // if false/true - use as init value in de/pe. use instead of customization.spellcheck parameter }, font: { - family: "Arial", + name: "Arial", }, chat: true, comments: true, diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 114d6afa3..f2dd0f5fa 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -381,8 +381,8 @@ define([ Common.Utils.InternalSettings.set("save-guest-username", !!value); } if (this.appOptions.customization.font) { - if (this.appOptions.customization.font.family && typeof this.appOptions.customization.font.family === 'string') { - var arr = this.appOptions.customization.font.family.split(','); + if (this.appOptions.customization.font.name && typeof this.appOptions.customization.font.name === 'string') { + var arr = this.appOptions.customization.font.name.split(','); for (var i=0; i