Replies: 2 comments 6 replies
-
Hi @gumbald ! |
Beta Was this translation helpful? Give feedback.
-
@gumbald , if the file was locked, you'd probably get a PermissionError, but certainly not a FileNotFoundError. I see that you're using relative paths to the font files. This makes me suspect that your code changes the current directory of the process at some point. After that, the relative paths won't point to the right place anymore. |
Beta Was this translation helpful? Give feedback.
-
Hello - I'm adding some fonts from a local directory and using them successfully in a document. However, when I try to run this immediately after, it throws an exception on adding the font again (file not found) - I suspect because the files are still locked. Is there a method I should be using to clean up and unlock the font file...?
Beta Was this translation helpful? Give feedback.
All reactions