Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions decktape.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,7 @@ async function printSlide(pdf, slide, context) {
if (!font.data['OS/2']) {
font.data['OS/2'] = {};
}
// PDF font name does not contain sub family on Windows 10,
// so a more robust key is computed from the font metadata
const id = descriptor.get(PDFName.of('FontName')).value() + ' - ' + fontMetadataKey(font.data.name);
const id = crypto.createHash('SHA1').update(Buffer.from(bytes)).digest('hex');
if (context.pdfFonts[id]) {
const f = context.pdfFonts[id].font;
font.data.glyf.forEach((g, i) => {
Expand Down
Loading