Different path handling when loading resources on Windows and Mac #152

Open
opened 2023-10-01 15:39:37 +00:00 by bvisness · 1 comment
Owner

I have a font we'll call font.ttf in my data directory, which I bundle using --resource-dir data. On Windows, I can load this font file with the path /font.ttf. However, on Mac this does not work, and I need to use font.ttf.

It feels reasonable to me to allow the / at the start to explicitly root paths to the resource directory, but at the very least it is weird that things are inconsistent.

I have a font we'll call `font.ttf` in my `data` directory, which I bundle using `--resource-dir data`. On Windows, I can load this font file with the path `/font.ttf`. However, on Mac this does not work, and I need to use `font.ttf`. It feels reasonable to me to allow the `/` at the start to explicitly root paths to the resource directory, but at the very least it is weird that things are inconsistent.
Collaborator

Both should work with an initial /. I'll look into this

Both should work with an initial `/`. I'll look into this
MartinFouilleul self-assigned this 2023-10-02 10:41:02 +00:00
Sign in to join this conversation.
No Label
macOS
windows
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hmn/orca#152
No description provided.