Skip to content

Commit

Permalink
Fix a bug with dfonts not loading correctly
Browse files Browse the repository at this point in the history
See foliojs/pdfkit#245 for information on this
  • Loading branch information
kennydude committed Dec 4, 2014
1 parent f0da34f commit cf40006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ FontProvider.prototype.provideFont = function(familyName, bold, italics) {
if (cached) return cached;

var fontCache = (this.cache[familyName] = this.cache[familyName] || {});
fontCache[type] = this.pdfDoc.font(this.fonts[familyName][type])._font;
fontCache[type] = this.pdfDoc.font(this.fonts[familyName][type], familyName)._font;
return fontCache[type];
};

Expand Down

2 comments on commit cf40006

@ninja-
Copy link

@ninja- ninja- commented on cf40006 Dec 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this broke everything, see #162

@kennydude
Copy link
Contributor Author

@kennydude kennydude commented on cf40006 Dec 25, 2014 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.