Changing fonts - possible improvements to the docs #5791
MaximilianKohler
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current page https://squidfunk.github.io/mkdocs-material/setup/changing-the-fonts/#additional-fonts is pretty basic. As a noob, it was not clear to me what to put in
src
norfont-family
when wanting to use Verdana:So I had skipped that and just used:
Which worked fine on desktop but didn't seem to work on mobile browsers.
Additional issues with font-weight:
In my
mkdocs.yml
I'm using:I also use this CSS code that I found in another discussion:
I tried adding
font-weight
But it only switches between
light
andbold
.Google's font pages https://fonts.google.com/noto/specimen/Noto+Sans+Adlam+Unjoined#styles show there are additional weights (
400;500;600;700
) and it tells me to add one or more of these:Which is different from what's shown at https://squidfunk.github.io/mkdocs-material/setup/changing-the-fonts/#additional-fonts.
I did some googleing and found this example https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face. And from that I deduced that the correct code to add to
extra.css
is:So I did, but I still don't see a difference when switching between 400-500, or 600-700 via:
Beta Was this translation helpful? Give feedback.
All reactions