Help using local fonts? #6291
-
I'm currently using mkdocs to build a website, but I want to use a font that is not available in Google Fonts due to licensing restrictions. The Also then, there's It's confusing for someone that it's not very well versed on web dev, just the basics. I could use some help, please. Note: I've tried finding a solution, but I haven't found anything that solves this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
As far as I know, if you want to use an alternative font then you will need to place it into the |
Beta Was this translation helpful? Give feedback.
-
I am newbie for mkdocs and mkdocs-material, and watched last youtube tutorial video this week. Tutorial is very good, but I want an offline documentation website (in Oracle Virtual Box virtual machine). I have two issues : one is with mermaid (diagrams not displayed: source text is displayed rather than image...when using "mkdocs serve" http web server...maybe page is displayed correctly on github web server) and one with "mkdocs build" is not copying to assets directory when using plugin offline, the google fonts CSS file (the file is in .cache). Pip freeze extract :
Extract of index.html (such line appears in other html files) refering to not found file by browser (Mozilla/Firefox) :
Extract of mkdocs.yml:
Stop server (started with "mkdocs serve" ) and run "mkdoc build", then checkout files into site directory : no css.a5ace9fc.css file. A work around is to copy from .cache the CSS file into site files tree. |
Beta Was this translation helpful? Give feedback.
Right, it has taken a little bit longer to get this right but there are now examples for using custom fonts as well as for using built-in browser fonts. Any feedback on these much appreciated.