# Failed to load font 'g\_d1\_f9': 'SyntaxError: Invalid font data in ArrayBuffer.'

**URL:** <https://pdfjs.community/t/failed-to-load-font-g-d1-f9-syntaxerror-invalid-font-data-in-arraybuffer/3758>\
**Category:** Technical Support\
**Created:** [July 8, 2025, 12:34am UTC](https://pdfjs.community/t/failed-to-load-font-g-d1-f9-syntaxerror-invalid-font-data-in-arraybuffer/3758 "2025-07-08T00:34:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dale](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@dale](https://pdfjs.community/u/dale)\
**Post date:** [July 8, 2025, 12:34am UTC](https://pdfjs.community/t/failed-to-load-font-g-d1-f9-syntaxerror-invalid-font-data-in-arraybuffer/3758/1 "2025-07-08T00:34:31Z")

</div>

**Which product are you using?**  
PDF.js Express Viewer

**PDF.js Express Version**  
8.7,4

**Detailed description of issue**  
Fonts not displaying on PDF. They work everywhere else, just not in PDFJs or the demo webviewer.

Failed to load font ‘g\_d1\_f9’: ‘SyntaxError: Invalid font data in ArrayBuffer.’.

**Expected behaviour**  
Fonts should just display

**Does your issue happen with every document, or just one?**  
Just one

**Link to document**

---

<div class="post-metadata">

**Author:** ![dale](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@dale](https://pdfjs.community/u/dale)\
**Post date:** [July 8, 2025, 3:35am UTC](https://pdfjs.community/t/failed-to-load-font-g-d1-f9-syntaxerror-invalid-font-data-in-arraybuffer/3758/3 "2025-07-08T03:35:08Z")

</div>

![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/5/59d810c60f0c8f6a1a031d138df735bf5ad6de56.png)

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [July 8, 2025, 3:40pm UTC](https://pdfjs.community/t/failed-to-load-font-g-d1-f9-syntaxerror-invalid-font-data-in-arraybuffer/3758/4 "2025-07-08T15:40:26Z")

</div>

Hello dale,

Can you provide the document for us to test with?

Best regards,  
Tyler

---

<div class="post-metadata">

**Author:** ![dale](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@dale](https://pdfjs.community/u/dale)\
**Post date:** [July 8, 2025, 10:44pm UTC](https://pdfjs.community/t/failed-to-load-font-g-d1-f9-syntaxerror-invalid-font-data-in-arraybuffer/3758/5 "2025-07-08T22:44:17Z")

</div>

[redacted\_problem\_pdf.pdf](https://pdfjs.community/uploads/short-url/avrH1fhrtqPNBP9eNLJVkauhTQ0.pdf) (52.9 KB)

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [July 9, 2025, 6:22pm UTC](https://pdfjs.community/t/failed-to-load-font-g-d1-f9-syntaxerror-invalid-font-data-in-arraybuffer/3758/6 "2025-07-09T18:22:51Z")

</div>

Hello dale,

The file loads correctly for me for both WebViewer and PDFJS Express,

Can you provide some additional steps to reproduce the issue? including any environment details such as OS and Browser?

Best regards,  
Tyler

---

<div class="post-metadata">

**Author:** ![dale](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@dale](https://pdfjs.community/u/dale)\
**Post date:** [July 10, 2025, 11:23pm UTC](https://pdfjs.community/t/failed-to-load-font-g-d1-f9-syntaxerror-invalid-font-data-in-arraybuffer/3758/7 "2025-07-10T23:23:08Z")

</div>

Here are the two versions - One in Apyse with correctly loaded fonts and one in PDFJS Webviewer Demo

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/f/feed25b1004bf74bb53b07b842593f60d8c90e98.png)  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/4/4e44624bdfc135f190181c9c26325e99dcc6ee4a.png)

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/e/e42efe6b77a43c22a9653fed708e962f804468b5.png)

---

<div class="post-metadata">

**Author:** ![dale](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@dale](https://pdfjs.community/u/dale)\
**Post date:** [July 11, 2025, 3:04am UTC](https://pdfjs.community/t/failed-to-load-font-g-d1-f9-syntaxerror-invalid-font-data-in-arraybuffer/3758/8 "2025-07-11T03:04:28Z")

</div>

Done using Windows 11, and both latest Chrome/Edge.

---

<div class="post-metadata">

**Author:** ![dale](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@dale](https://pdfjs.community/u/dale)\
**Post date:** [July 25, 2025, 12:07am UTC](https://pdfjs.community/t/failed-to-load-font-g-d1-f9-syntaxerror-invalid-font-data-in-arraybuffer/3758/9 "2025-07-25T00:07:21Z")

</div>

@tgordon What were you doing to get it to load correctly? It doesnt even load correctly in the PDFJS website..

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [July 28, 2025, 7:27pm UTC](https://pdfjs.community/t/failed-to-load-font-g-d1-f9-syntaxerror-invalid-font-data-in-arraybuffer/3758/10 "2025-07-28T19:27:27Z")

</div>

Hello dale,

Im using a Mac with Chrome, which I think might be the difference.

Unfortunately we are no longer updating our version of the PDFJS renderer, therefore we suggest you look at our sister product WebViewer that has our own in-house renderer: [Free Trial: JavaScript PDF Viewer | Apryse documentation](https://docs.apryse.com/web/guides/get-started)

Best regards,  
Tyler

---

<div class="post-metadata">

**Author:** ![dale](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@dale](https://pdfjs.community/u/dale)\
**Post date:** [September 11, 2025, 7:15am UTC](https://pdfjs.community/t/failed-to-load-font-g-d1-f9-syntaxerror-invalid-font-data-in-arraybuffer/3758/12 "2025-09-11T07:15:28Z")

</div>

Following this up with a potential solution and your recommendations for how to implement.

> [@How to disable font face via API?](https://pdfjs.community/t/how-to-disable-font-face-via-api/3797):
>
> Continuing on from this problem here, we found that disabling the font face in the compiled code actually let us use fallback fonts instead of having an error. Is there a way to set the disableFontFace boolean programatically without having to edit PDFJS code itself? Which product are you using? PDJS Web Viewer PDF.js Express Version 8.7.4 Detailed description of issue Expected behaviour We expect fallback fonts to appear, but this only works when disableFontFace is set to true. We …
