Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Cannot read properties of undefined (reading 'getTransform') #766

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Cannot read properties of undefined (reading 'getTransform')
ahaoboy authored Sep 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit c06b7c89ac396259054edded2eff5e26f439ce7b
2 changes: 1 addition & 1 deletion docs/glyph-inspector.html
Original file line number Diff line number Diff line change
@@ -161,7 +161,7 @@ <h1>Free Software</h1>
html += '<dt>leftSideBearing</dt><dd>'+glyph.leftSideBearing+'</dd>';
}
html += '</dl>';
if (glyph.numberOfContours > 0) {
if (glyph.numberOfContours > 0 && window.font.variation) {
var contours = glyph.getContours(window.font.variation.getTransform(glyph, window.fontOptions.variation).points);
html += 'contours:<div id="glyph-contours">' + contours.map(contourToString).join('\n') + '</div>';
} else if (glyph.isComposite) {