Skip to content

Fix FontForge script generation on Windows#11

Open
Rirush wants to merge 1 commit into
ali1234:masterfrom
Rirush:master
Open

Fix FontForge script generation on Windows#11
Rirush wants to merge 1 commit into
ali1234:masterfrom
Rirush:master

Conversation

@Rirush
Copy link
Copy Markdown

@Rirush Rirush commented Jan 23, 2023

On Windows, the script contains paths that look like this:

Import("a\b\c", 0)

FontForge interprets this path as abc instead of a/b/c. This patch escapes backslashes on Windows, generating paths like this:

Import("a\\b\\c", 0)

These paths are correctly treated as a/b/c, making this work on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant