Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Issue with getting the name of font

Community Beginner ,
Jul 12, 2021 Jul 12, 2021

rahuls82293989_0-1626114868291.pngexpand image

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

TOPICS
Acrobat SDK and JavaScript , Mac , Windows
599
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 13, 2021 Jul 13, 2021

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.

Translate
LEGEND ,
Jul 12, 2021 Jul 12, 2021

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 12, 2021 Jul 12, 2021

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 13, 2021 Jul 13, 2021

It's normal. Expect and handle the case. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2021 Jul 13, 2021

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

And have you seen such similar data inconsistencies

 

Regard

Rahul

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 13, 2021 Jul 13, 2021
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines