-
Notifications
You must be signed in to change notification settings - Fork 79
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
How to make fonts work like mkdocs sample? #117
Comments
FWIW I captured the following output..
|
Suspecting my Docker image to be to blame, I setup the toolset on my Mac, and tried again.. the result is the same.. even with the sample material-mkdocs structure from https://github.com/orzih/mkdocs-with-pdf/tree/master/samples/mkdocs-material (I just had to disable the google_analytics config to avoid an error), I get no Roboto font... |
After running into the same issue, I managed to find part of the problem. Essentially, the Although I've changed the I'll update this issue if I find the second problem in the meantime. |
@Avlyssna can you provide some more details about the workaround you applied? I have exactly the same issue as @funkypenguin - missing text in code blocks. |
Btw, I just tried to install the missing font via |
This is quite a big issue. Did anyone has a way to mitigate the problem ? This happens only on Windows for me, not Linux. |
Here is a workaround. Add a custom style to with_pdf in your * {
font-family: Verdana, Geneva, Tahoma, sans-serif !important;
} The important part is |
@flavienbwk confirm it works, thanks! |
@flavienbwk thanks for your workaround. I was a few days going around the same problem. |
Thank you for this amazing plugin! I've been trying to get a good-looking PDF of my mkdocs site working, but I'm struggling with the rendered font.. I've created a Docker image to do the build (below), but TL;DR, when I use your material-mkdocs sample which generates this pdf, and I try to reproduce it with my build image, but I don't seem to have been able to change the font used.
I've had a look at #50, and I've tried manually coping over the Roboto fonts, or installing the Ubuntu font using apk, but in all cases, my PDFs render with the same less-than-attractive font..
What am I missing? :)
Here's the Dockerfile I'm using, BTW:
The text was updated successfully, but these errors were encountered: