I don't know whether it is an ubuntu bug or a firefox bug but since I am running the mozilla-supported ubuntu snap of firefox 99.0.1 (on 22.04 jammy) (firefox 100 not yet available on snap), posting it here.
Many pdfs have messed-up fonts on this firefox. Following a reddit thread, I tried disabling browser.display.use_document_fonts in about:config. Then the pdfs render correctly, but html webpages have messed-up fonts.
Reddit post with screenshots and sample URL here; previous reddit thread linked therein.
https://www.reddit.com/r/firefox/comments/uhz6d1/continued_messedup_font_rendering_in_firefox_pdf/
Others (on this and previous thread) report it doesn't happen on other platforms. On this thread, someone confirms it on a Ubuntu VM, and someone else says it doesn't happen on Mint (based on Ubuntu but I think doesn't use snaps).
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Steps to reproduce:
open PDF in Firefox under Linux Ubuntu 18.04 via website
https:/ /web.archive. org/web/ 20011111104216/ http:// www.lungusa. org/air/ pdf/pm01_ rep.pdf
https:/ /web.archive. org/web/ 20011111104402/ http:// www.lungusa. org/air/ pdf/ozone01_ rep.pdf
Actual results:
poor fonts are being displayed
Expected results:
should have included "original" fonts by default?
this could be achieved after going to
about:config (in adress bar) display. use_document_ fonts" to "0" instead of "1"
setting "browser.
should be default behaviour, or am i wrong?