Skip to content

Commit

Permalink
Fix bug #55308
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyMatveev686 committed Aug 16, 2023
1 parent 2f29318 commit 419f122
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions word/apiBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -7752,10 +7752,16 @@
*/
ApiParagraph.prototype.GetFontNames = function()
{
var fontMap = {};
var arrFonts = [];
this.Paragraph.Document_Get_AllFontNames(fontMap);
for (var key in fontMap)
let fontMap = {};
let arrFonts = [];
// this.Paragraph.Document_Get_AllFontNames(fontMap);
this.Paragraph.Get_CompiledPr().TextPr.Document_Get_AllFontNames(fontMap);
for (let i = 0; i < this.Paragraph.Content.length; i++)
{
let element = this.Paragraph.Content[i];
element.Get_CompiledTextPr().Document_Get_AllFontNames(fontMap);
}
for (let key in fontMap)
{
arrFonts.push(key);
}
Expand Down Expand Up @@ -9382,10 +9388,11 @@
*/
ApiRun.prototype.GetFontNames = function()
{
var fontMap = {};
var arrFonts = [];
this.Run.Get_AllFontNames(fontMap);
for (var key in fontMap)
let fontMap = {};
let arrFonts = [];
// this.Run.Get_AllFontNames(fontMap);
this.Run.Get_CompiledTextPr().Document_Get_AllFontNames(fontMap);
for (let key in fontMap)
{
arrFonts.push(key);
}
Expand Down

0 comments on commit 419f122

Please sign in to comment.