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

Font Name for Missing Fonts

Contributor ,
Sep 07, 2017 Sep 07, 2017

Copy link to clipboard

Copied

Hi,

     I am getting font name for missing font.  When getting, could not able to get font postscript name and fontstyle name for few fonts because its don't have postscript name visually.  Few fonts, showing style name but could not able to get the style name.  So i tried to get font name but its returning style name twice.  How can i get font name with fontstyle name or postscript name. 

Code :

var myDoc = app.activeDocument;

var allFontsStr = "";

for(var i = 0; i < myDoc.fonts.length; i++)

{

    var cFont = myDoc.fonts;

    allFontsStr += cFont.name +"\n";

   

    //allFontsStr += cFont.fontFamily + " - " + cFont.fontStyleName +"\n";

}

alert("allFontsStr " +allFontsStr)

exit()

PostScriptName_Empty.png

FontStyleError_1.png

FontStyleError_2.png

FontStyle_Repeated_InNames.png

Thanks,

Sudha K

TOPICS
Scripting

Views

931

Translate

Translate

Report

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
Guide ,
Sep 07, 2017 Sep 07, 2017

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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
Contributor ,
Sep 08, 2017 Sep 08, 2017

Copy link to clipboard

Copied

Hi,

     I have checked and also the output of the below link is showing empty for that specific occurences..

     Re: How can select indesign Font Name into doc file

     Screen shot 2017-09-08 at 2.52.39 PM.png

Screen shot 2017-09-08 at 3.41.56 PM.png

  

   I have checked and posted with screenshots with each occurrence of issue... Again now i have checked the given links by you... I need to get postscript font name or font name (family with style) for documents fonts. Not for paragraphs style.

- Sudha K

Votes

Translate

Translate

Report

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
Guide ,
Sep 08, 2017 Sep 08, 2017

Copy link to clipboard

Copied

Just want to make sure, your previous thread have some codes, is it not working?

Screen Shot 2017-09-08 at 5.24.10 PM.png

Votes

Translate

Translate

Report

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
Contributor ,
Sep 08, 2017 Sep 08, 2017

Copy link to clipboard

Copied

Hi,

     Question may be the same but there is an issue to getting fonts name with style / postscript name of the documents fonts. There is way to get that without any issue??

- Sudha K

Votes

Translate

Translate

Report

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
Contributor ,
Sep 10, 2017 Sep 10, 2017

Copy link to clipboard

Copied

LATEST

How can i get the font details for missing fonts??

Can anyone help me ....

Votes

Translate

Translate

Report

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