mirror of
https://github.com/astefanutti/decktape.git
synced 2024-09-17 17:37:13 +03:00
Glyph contours can be null while consolidating fonts
This commit is contained in:
parent
9a26febbf2
commit
c8cb03f1c3
@ -405,7 +405,7 @@ function printSlide(printer, buffer, context) {
|
||||
const f = context.pdfFonts[name].font;
|
||||
font.data.glyf.forEach((g, i) => {
|
||||
if (g.contours && g.contours.length > 0) {
|
||||
if (f.data.glyf[i].contours.length === 0) {
|
||||
if (!f.data.glyf[i].contours || f.data.glyf[i].contours.length === 0) {
|
||||
f.data.glyf[i] = g;
|
||||
}
|
||||
} else if (g.compound) {
|
||||
|
Loading…
Reference in New Issue
Block a user