diff --git a/font-src/glyphs/letter/latin.ptl b/font-src/glyphs/letter/latin.ptl index 41ed94762..c52693a9a 100644 --- a/font-src/glyphs/letter/latin.ptl +++ b/font-src/glyphs/letter/latin.ptl @@ -3780,8 +3780,10 @@ glyph-block Letter-Latin-Lower-N : begin define [NTopLeftSerif] : begin tagged 'serifLT' : LeftwardTopSerif SB XH SideJut + glyph-proc define [NBottomLeftSerif] : if (!para.isItalic) tagged 'serifLB' : CenterBottomSerif (SB + HalfStroke * HVContrast) 0 Jut + glyph-proc define [NBottomRightSerif] : if (para.isItalic) tagged 'serifRB' : RightwardBottomSerif RightSB 0 SideJut tagged 'serifRB' : CenterBottomSerif (RightSB - HalfStroke * HVContrast) 0 Jut diff --git a/font-src/support/glyph.js b/font-src/support/glyph.js index 54fbb083a..5ffd9414f 100644 --- a/font-src/support/glyph.js +++ b/font-src/support/glyph.js @@ -54,7 +54,9 @@ module.exports = class Glyph { } // Inclusion include(component, copyAnchors, copyWidth) { - if (component instanceof Function) { + if (!component) { + throw new Error("Unreachable: Attempt to include a Null or Undefined"); + } else if (component instanceof Function) { const t = this.defaultTag; if (component.tag) this.defaultTag = component.tag; component.call(this, copyAnchors, copyWidth);