getPath.commands.type - Z 'close' #786
johnthesoftwareathome
started this conversation in
General
Replies: 3 comments 2 replies
-
This fixed it... Wrong - //<script src="https://opentype.js.org/dist/opentype.js"></script> |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok. Thanks. So I guess a MoveTo (M) implicitly closes any preceding
outline.
…On 22/01/2025 15:08, Sarah C. Groß wrote:
This fixed it...
Wrong - //<script
src="https://opentype.js.org/dist/opentype.js"></script> Right -
<script
***@***.***/dist/opentype.min.js"></script>
Which means you downgraded from the latest master to the outdated
release. If you want to use future versions of the library, you'll
have to update your code to assume that paths will be automatically
closed from the last to the first point of an outline. The reaaon is
that handling of the z command has been omitted for performance
reasons, because renderers do that automatically.
—
Reply to this email directly, view it on GitHub
<#786 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIMJYZH6WG6CD6FIRX563PT2L6X5PAVCNFSM6AAAAABVSSGYVOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJRG44TOMA>.
You are receiving this because you modified the open/close
state.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
...and working. Thanks. Is this information available? Was I using out-of-date documentation? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My previously working code no longer terminates my glyph drawing correctly. It appears to be because the close command 'Z' is no longer being sent. Is this correct?
Beta Was this translation helpful? Give feedback.
All reactions