diff --git a/src/opentype/GPOSProcessor.js b/src/opentype/GPOSProcessor.js index 6a2c1f9f..6047b441 100644 --- a/src/opentype/GPOSProcessor.js +++ b/src/opentype/GPOSProcessor.js @@ -285,6 +285,9 @@ export default class GPOSProcessor extends OTProcessor { } getAnchor(anchor) { + if (anchor == null) { + return { x: 0, y: 0 }; + } // TODO: contour point, device tables let x = anchor.xCoordinate; let y = anchor.yCoordinate;