-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
UserWarning: FontConfig: No fonts configured. #1038
Comments
I resolve installing font-config on Alpine Linux |
I got squares (and the warning) despite having fontconfig installed. This was due to me not having any fonts installed. Hence it was resolved once I added fonts to my OS. (This came in handy for me https://stackoverflow.com/questions/56937689/alpine-linux-fonts) |
Any idea how to resolve for macos? |
For those who don't know how to install font-config in a docker container, I managed to solve the problem by adding the followings in the Dockerfile.
reference: orzih/mkdocs-with-pdf#50 |
For # Docker syntax.
RUN apk update --no-cache && \
apk add --no-cache
# weasyprint=62.1-r0 \
# Add fonts.
fontconfig=2.15.0-r1 \
# ttf-freefont \
font-noto=23.7.1-r0
# terminus-font For my purposes, I have to use |
I'm having this error when I try to use the weasyprint
and the rendering:
![Screen Shot 2020-01-22 at 20 30 16](https://user-images.githubusercontent.com/13179054/72943897-0a72d100-3d56-11ea-9a34-c96515cd68ab.png)
The text was updated successfully, but these errors were encountered: