-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fonts not displaying #127
Comments
Did you follow the steps in the troubleshooting link in the Issue creation screen? https://docs.note.sx/Troubleshooting#force-a-full-re-upload-of-all-note-data You can use any custom font you like, you most likely didn't re-upload your CSS (it's in the steps above) or it's a caching issue of your new CSS not showing in your browser (also in the link above) |
Yes I did follow the steps. Here is an example note: https://share.note.sx/rflluu49#e6+nFhQ5yKNHhcf7LKNp8msHUuL9PoU2S8fFRIybbDU |
Are you using a custom theme? I am using the default theme, and this is what is set as fallback for You can check the shared note here: https://share.note.sx/nv523t5v#oO8g9TkniYxyRY+Z7FS4cqOlGOGzBcVcKQYs2c43kVk If you're using a custom theme or custom CSS, those fallback options need to be specific in there. However I realised thanks to your issue that default fonts aren't uploaded since they aren't part of the theme. I might see if I can upload the Obsidian set font also. |
That's exactly how I shared the last note, those exact 3 steps. So maybe you can try in a Sandbox vault? You can see that my default Obsidian installation does send a fallback font option. What OS are you using? |
In the test vault it works. I'm using macOS, Linux, Windows and iPhone but the behaviour seems to be the same. |
I figured it out. I have multiple fonts set up. If the font contains spaces, it breaks it and reverts to browser default. If I set Inter, Alliance No 2, SN Pro, it doesn't work. The setting prints out it like this to the shared page: --font-text-override: Inter, Alliance No .2, SN Pro; If I only set Inter, it works: --font-text-override: Inter; https://share.note.sx/1zd49xzt#vGmIa7o+ZgmyQHmM8eOuh/ug8eP7eQvgQxoMlKoMdUs |
Based on your syntax highlighting here, it might actually be the font with the dot --font-text-override: Inter, Alliance No .2, SN Pro; If you open up the Developer console in Obsidian and look at the CSS for those elements, does Obsidian quote the font strings? I'm getting the CSS directly from Obsidian's DOM, so it should be an exact replica. However I'm not sure why Obsidian can correctly display the unquoted fonts. |
My examples were directly from devtools. So no, Obsidian doesn't quote fonts. That is seemingly the culprit here. |
I have set my Obsidian Text font to Inter. It seems sharing feature has no fallback if custom font is set. Can you set it as system-ui somehow? Now it seems to revert to Times or similar.
The text was updated successfully, but these errors were encountered: