The Arabic font is not rendering correctly in Firefox browser In MAC OS.
On trying to render the Arabic font family on MAC OS, The browser substitutes the actual font to "Times New Roman" that's why user can find a difference in text rendering between browser and pdf.
This is actually a technical challenge with the onset of Firefox Quantum that some fonts of Arabic do not load in MAC Firefox browser.
Impact Areas: This issue is specific to:
Browser: Firefox 57 and above (works on lower versions and also works on chrome safari all versions)
OS: MAC only all versions (As it works on Windows /Linux machine having Firefox 57 and above)
Text Type: Arabic only (As English text works in MAC browser having Firefox 57 and above)
Sample screenshot is attached also providing link where you can download files https://www.dropbox.com/s/vh6x3wq4ol2srr8/html.zip?dl=0