Skip to main content
Known Participant
Jul 12, 2021 6:37 PM UTC
Answered

Issue with getting the name of font

While looking at the font props in the Acrobat Pro 2020 I get this weird behavior where for few fonts the name is "Family,Style" instead of "Family-style". The same happens when we read this value via the SDK

 

Its not isolated to Calibiri but for other fonts as well

Its also reporducible across different machines

 

Any insights/link to known issues is highly appreciated

 

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Jul 13, 2021 1:11 PM UTC

So basically, I will be replacing "," with a "-" yes?

And have you seen such similar data inconsistencies

 

Regard

Rahul


No. As you were told, you can't predict what the internal font name will be based on the display name, or anything else. You have to get that name from the font itself.

5 replies

Legend
Jul 12, 2021 7:52 PM UTC

Doesn't sound weird. Some fonts are like that, and some PDF generators do that. You can't assume the internal names will match any particular pattern, rule, or repository. 

Translate
RdMaxAuthor
Known Participant
Jul 13, 2021 5:49 AM UTC

I check the fonts in the font tools we use, and the name was read correctly

The fonts were used directly into the pdf and not added during document import/conversion

Translate
Legend
Jul 13, 2021 8:51 AM UTC

It's normal. Expect and handle the case. 

Translate