Hi there,
I'm a bit lost here. I've looked at all the font/weasyprint related things I can find in these forums but I feel a bit out of my depth.
I'm trying to use Roboto in my WeasyTemplateView, which I have simply set in blog.css:
body {
font-family: 'Roboto', sans-serif !important;
}
I've run python manage.py collectstatic
a few times along with fc-list
to make sure that Roboto is present, which it is. I've also loaded the font in the html template:
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
None of these things have helped. I'm getting some kind of default, serif style font instead, only on PAW.
Does anyone have any advice for me? I've looked at https://weasyprint.readthedocs.io/en/stable/features.html#fonts and quite honestly have no idea what I'm looking at haha.
PS: Not really sure what information I could give or not give to help, but if you'd like to have a poke around, all of my code is sitting here - the bugged view is "ExportPDF" and the template is export.html in the "online_cv" app_dir: https://github.com/Kirkmania/Y2-Summer-Project-Blog