path with commands from glyph.getPath does not contain the closing Z command.
const glyph = font.charToGlyph(someCharacter);
const path = glyph.getPath(x, y, fontSize);
then, path.toPathData draws an non-closed shape.
maybe thats by design. then i am doing something wrong.
i am using the master branch.