pourmand1376 / obsidian-custom-font

A plugin to set custom font for obsidian
https://obsidian.md/plugins?id=custom-font-loader
MIT License
53 stars 1 forks source link

Font not visible/loading as iPad/iPhone (iPadOS/iOS) #14

Closed Mibeon closed 1 month ago

Mibeon commented 1 month ago

Downloaded the plugin, put the fonts in the ./obsidian/fonts directory on my iCloud vault.

Nothing happens. Nothing works. No matter which format (ttf, woff2). Changed the folder name, changed the location completely from hidden to visible one (without ".") - nothing happens.

Currently this plugin just does nothing on iPad/iPhone.

pourmand1376 commented 1 month ago

Hey @Mibeon, Thanks for submitting an issue.

Fonts should be placed in your vaults folder. Where do you place it?

Here's what I propose. Go to plugin and type the folder name as fonts.

CleanShot 2024-07-11 at 14 11 31@2x

Then hit reload and then you should see fonts folder in obsidian (which is automatically created for you).

Then, you should somehow paste the font into the folder. In my case it is mac (I've tested this one on windows, linux and android too: so I suppose it shouldn't have any problem on IPhone).

CleanShot 2024-07-11 at 14 13 46@2x

Now, If you go back to your plugin and hit reload. It should show you something like this:

CleanShot 2024-07-11 at 14 15 07@2x

Mibeon commented 1 month ago

Hey, thanks for the response.

It works. But with that solution I get a "fonts" folder right in my main vault. This is not, what really wanted. But generally it works.

Thank you!

pourmand1376 commented 1 month ago

Hey, I'm happy that it works.

To hide the folder from sight, you need to go to your_vault_folder/.obsidian.

Unfortunately. As it is a hidden folder in most operating systems, you need to find a way to go inside it.

Then you need to create a folder called fonts in that folder and put your font there.

Then you could go into the obsidian plugin and make the folder name empty (actually the default value is .obsidian/fonts/.

You should now see the fonts inside your folder after hitting reload button.

The real problem might be going inside .obsidian folder which you should find your way inside.

Note: You don't need to create this .obsidian folder. It will be created when you load an obsidian vault automatically.