Open w-zhiwei opened 1 year ago
How do you sync your files? Are you using obsidian sync?
How do you sync your files? Are you using obsidian sync?
Yes, im using the official sync. My current workaround is to mannually set the value of font_folder_path
in the source code.
Hmm, This is something that I haven't considered.
What path did you set to fix the issue?
Hmm, This is something that I haven't considered.
What path did you set to fix the issue?
I just set const font_folder_path = "fonts"
to put the fonts folder outside .obsidian
. I think maybe there could be an option for users to set the font folder dir themselves.
Hmm, This is something that I haven't considered. What path did you set to fix the issue?
I just set
const font_folder_path = "fonts"
to put the fonts folder outside.obsidian
. I think maybe there could be an option for users to set the font folder dir themselves.
This could be a good fix. Thanks for submitting the issue.
I'm having a related issue, where on iOS the fonts folder is not being found even though it's definitely there in the file tree (visible via Working Copy). The message displayed on Obsidian startup is:
"Error: The file "fonts" couldn't be opened because there is no such file."
On iOS, I've configured Obsidian to use .obsidian.mobile
instead of .obsidian
, which might be causing this.
iOS Version: 17.2.1 Model: iPhone 11 Pro Max
On Mac its working fine.
Currently, I put the font files inside .obsidian/fonts
. I think this would be resolved if I make this path customizable.
I would add that functionality as soon as I can.
Also, I would appreciate it if anybody could make a PR.
New Version is released here.
You can test it by downloading main.js
file and replacing with current main.js
file in plugins/custom-fonts-loader
folder.
The option to choose font folder path is added. I'd love to hear your feedback!
This issue should be solved by now. Just change the plugin font path to something else and It would automatically sync with whatever client you have!
If you have anymore questions, don't hesitate to ask here.
I'm not sure if it's a bug or intended, but if I put
fonts
folder in.obsidian
, it will not be syncing at all.