Skip to main content
Inspiring
November 28, 2022
Question

weird font name

  • November 28, 2022
  • 4 replies
  • 3219 views

I have some documents created with InDesign2014.
I use the document.Fonts.Item(i) property to get the font name.
In InDesign2014, I can get the correct font name.
But, when I open the documents with InDesign2021,
the font name becomes weird.

For example
In InDesign2014, the font name is XXXRegular.
In InDesign2021, the font name becomes XXXRegularRegular.

There are multiple fonts that have this phenomenon, not just one.
I have exported the 2014 documents to idml, and open the idml with 2021,
but the phenomenon did not change.

why the font name changed?

This topic has been closed for replies.

4 replies

m1b
Community Expert
Community Expert
December 23, 2022

@erieru103 are you on MacOS? I'm trying to narrow down the scope of this bug. Others I've spoken to running Windows don't see it. - Mark

erieru103Author
Inspiring
December 26, 2022

Hi, Mark.

 

Thanks for your answering.
I haven't been able to try your code yet, but I think I can get the correct font name using your code.

I have a question, that is Font.name = Font.fontFamily + tab + Font.fontStyleName?
Looking at the font name, it looks like this.

I use Windows10.

m1b
Community Expert
Community Expert
December 23, 2022

Hi @erieru103, I'm seeing the exact same weirdness with font double-style-names. See my answer here. Not sure if it will help.

- Mark

willcampbell7
Legend
December 7, 2022

This won't solve the problem but might help investigating the cause. The script outputs all variety of naming schemes app fonts use. Free download and editable.

https://www.marspremedia.com/software/indesign/get-font-names

 

William Campbell
erieru103Author
Inspiring
December 8, 2022

I tried using the script to get font names and the figure below is the result.

It looks like there is no problem with the font name.

This means that I cannot get the correct font name with VBA.

Could this be an InDesign script bug?

Community Expert
December 8, 2022

As it is not clear which font information is used to generate this list it is not clear if there is a possible problem with the font naming.

To be clear: In a font there are

Family name, Style name, Full name, PostScript name, Style group, Master name, Weight class, Width class, Slope class

They all must be correct and match to get a working font.

Part of them is used to generate the font name (menu name and sorting order) that is shown in the menu of the OS and in the software you are using.

Most software make use of the OS supplied font information BUT Adobe uses its own.

That is why only a look at the font with a specified software (font editor) itself can clarify if there is a problem.

If it is possible to get the font(s) I can have a look at this.

In case contact me directly.

Stephan

Community Expert
November 28, 2022

Hi @erieru103 ,

how is the font installed?

Does your InDesign 2014 document comes with a Document fonts folder (and your InDesign 2021 document not) ?

 

Check Type > Find/Change Font

Select the one that behaves weird and hit the More Info button to see all details.

Especially the Path property.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Steve Werner
Community Expert
Community Expert
November 28, 2022

These might help diagnose the problem :

 

(1) What operating system are you running? (2) Make a screen capture of the Find/Change Font dialog box with the setup that Uwe suggested (problematic font selected, More Info open) so we can see all the details about the font.

erieru103Author
Inspiring
November 29, 2022

The font info is the following.
My OS is windows10.

The weird fonts are not installed in my PC.
Is this affecting this issue?