Not reading the font on the PDF

Which product are you using?
PDF.js Express Viewer

PDF.js Express Version
8.7.0

Detailed description of issue
I have a problem with the font on Firefox browser, and on Chrome and Edge it shows an error for the font in the console, but still displays the font correctly. Can I replace the font on browsers that don’t read a certain font to display it with another font and display the text nicely on the PDF?"

Expected behaviour
To display the text nicely on the PDF, and not showing some characters.

Does your issue happen with every document, or just one?
With all documents that contain that font.

Code snippet

Hello Djordje.krstic97,

Fonts are a little tricky on the browser with PDFs, if the font isn’t embedded into the PDF we have to make a “best guess” as to what the font should be on the back end.

In this case, if you could send the PDF I can check if the font is embedded, but otherwise you can use:

instance.Core.setCustomFontURL()

to add a custom font

Best regards,
Tyler Gordon

Hi tgordon,

Here is the file, let me know when you check what’s wrong with the font.

Hi djordje.krstic97,

Im unable to reproduce this issue,

Can you provide additional steps to reproduce the issue?

Best regards,
Tyler

hi tgordon,

Open in firefox and with pdf.express. At this moment is when error is being shown

Hi djordje.krstic97,

Unfortunately Im unable to reproduce this, the screenshot above results from the same steps.
Possibly it could be your machine does not have the fonts accessible.

Best regards,
Tyler