You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm submitting this issue as part of my instructor training checkout.
This issue is related to the Lesson "Programming with Python", Episode 2 "Analysing patient data".
Summary
I noticed that the image fig/python-zero-index.svg does not render nicely on my (non-ubuntu) system, see this screenshot:
Inspecting the svg source, I noticed that it uses UbuntuMono fonts, which are not installed on my system (Debian 11).
After installing the fonts, the image renders nicely:
Attempted solution
I tried to embed the missing font in the svg, the patched file is attached here.
Testing locally, the image then renders nicely, even when I remove the locally installed font.
I then pushed it to my fork, but the online version still does not render correctly. My browser log tells me
Content Security Policy: The page’s settings blocked the loading of a resource at https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400;700 (“style-src”).
Possible solutions:
If possible, adjust security setting to allow loading fonts
Change font to something more widely used (e.g. Helvetica, Noto)
Use different way to embed font in svg (other than @import).
I'm also mentioning #494 as this seems to be related.
Any comments or ideas?
Thanks!
The text was updated successfully, but these errors were encountered:
IIRC, the reason Ubuntu font was chosen was that it is easier to read for people with dyslexia, so unless The Carpentries recommend a different font, we should try to support/use it.
Hi,
I'm submitting this issue as part of my instructor training checkout.
This issue is related to the Lesson "Programming with Python", Episode 2 "Analysing patient data".
Summary
I noticed that the image fig/python-zero-index.svg does not render nicely on my (non-ubuntu) system, see this screenshot:
Inspecting the svg source, I noticed that it uses UbuntuMono fonts, which are not installed on my system (Debian 11).
After installing the fonts, the image renders nicely:
Attempted solution
I tried to embed the missing font in the svg, the patched file is attached here.
Testing locally, the image then renders nicely, even when I remove the locally installed font.
I then pushed it to my fork, but the online version still does not render correctly. My browser log tells me
Possible solutions:
@import
).I'm also mentioning #494 as this seems to be related.
Any comments or ideas?
Thanks!
The text was updated successfully, but these errors were encountered: