Skip to content

Font path broken on Windows #63

@PeterWone

Description

@PeterWone
Uncaught Error Error: ENOENT: no such file or directory, open '\D:\ntsp\node_modules\svg-sequence-diagram\fonts\liberation-fonts\LiberationSans-Regular.ttf'
    at openSync (fs:596:3)
    at readFileSync (fs:464:35)
    at loadSync (d:\ntsp\node_modules\opentype.js\dist\opentype.js:14448:22)

Inspecting the file system the file is where it should be.

I think the problem is the leading slash. Did you test this on Windows?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions