Skip to main content
Participant
September 11, 2023
Question

Rendering fonts using font file in InDesign Server

  • September 11, 2023
  • 1 reply
  • 428 views

Hi, I am working with the InDesign server to render different templates. It uses a rendering (.jsx) script and data merge approach to render the indesign templates. Currently, I want to apply custom user fonts, using font files. Can I render the PDFs using custom font files in JSX script? If yes then please share with me the piece of code that demonstrates how can I achieve this. 
Tried workaround:

1. I uploaded the fonts to the InDesign font directory and then waited for the InDesign server to cache these uploaded fonts. Once the fonts are cached. I match the font name (using the font's full name from my database) and then apply it to the text. But this solution fails when multiple users upload similar font family files as they are no longer cached and the name from the database does not match anymore for some of the users.

This topic has been closed for replies.

1 reply

Community Expert
September 12, 2023

Hi @Umair27001800eele ,

hm… you could use a Document fonts folder where the font files are stored.

The scope of that folder is its parent folder; that means all InDesign documents that are stored in the parent folder have access to the fonts in the Document fonts folder. The name of the folder is a "magic" one. Name it exactly like I suggested.

 

Make sure that the fonts folder in the InDesign Application folder is empty and also make sure that the customer's fonts are never installed in the system of the machine.

 

Regards,
Uwe Laubender
( Adobe Community Expert )