Skip to content

Commit c06b7c8

Browse files
authored
fix: Cannot read properties of undefined (reading 'getTransform')
1 parent aa8ad76 commit c06b7c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/glyph-inspector.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ <h1>Free Software</h1>
161161
html += '<dt>leftSideBearing</dt><dd>'+glyph.leftSideBearing+'</dd>';
162162
}
163163
html += '</dl>';
164-
if (glyph.numberOfContours > 0) {
164+
if (glyph.numberOfContours > 0 && window.font.variation) {
165165
var contours = glyph.getContours(window.font.variation.getTransform(glyph, window.fontOptions.variation).points);
166166
html += 'contours:<div id="glyph-contours">' + contours.map(contourToString).join('\n') + '</div>';
167167
} else if (glyph.isComposite) {

0 commit comments

Comments
 (0)