Skip to content

Commit

Permalink
Fix bug #71614
Browse files Browse the repository at this point in the history
  • Loading branch information
KhromovNikita committed Nov 25, 2024
1 parent b1fe2ae commit b477940
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pdf/src/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -5897,7 +5897,10 @@ var CPresentation = CPresentation || function(){};
this.fontLoader.LoadFonts([sFontName],
function()
{
_t.loadedFonts.push(sFontName);
if (!_t.loadedFonts.includes(sFontName)) {
_t.loadedFonts.push(sFontName);
}

if (callback)
callback();
}
Expand All @@ -5910,7 +5913,7 @@ var CPresentation = CPresentation || function(){};
let fontMap = {};

let aExtended = [];
AscFonts.FontPickerByCharacter.extendFonts(aExtended);
AscFonts.FontPickerByCharacter.extendFonts(aExtended, true);
aExtended.forEach(function(font) {
aFontsNames.push(font.name);
});
Expand All @@ -5930,7 +5933,12 @@ var CPresentation = CPresentation || function(){};
this.fontLoader.LoadFonts(fontMap,
function()
{
_t.loadedFonts = _t.loadedFonts.concat(fontsToLoad);
fontsToLoad.forEach(function(fontName) {
if (!_t.loadedFonts.includes(fontName)) {
_t.loadedFonts.push(fontName);
}
});

if (callback)
callback();
}
Expand Down

0 comments on commit b477940

Please sign in to comment.