We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14e24f0 commit 8aef058Copy full SHA for 8aef058
src/glyph/Glyph.js
@@ -68,6 +68,7 @@ export default class Glyph {
68
if (this._font.vmtx) {
69
var {advance:advanceHeight, bearing:topBearing} = this._getTableMetrics(this._font.vmtx);
70
} else {
71
+ if (typeof cbox === 'undefined' || cbox === null) { ({ cbox } = this); }
72
var advanceHeight = Math.abs(this._font.ascent - this._font.descent);
73
var topBearing = this._font.ascent - cbox.maxY;
74
}
0 commit comments