Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects script display Fonts name with weight for some, without for others ??(cc2015)

  • script display Fonts name with weight for some, without for others ??(cc2015)

    Posted by Shai Benshoshan on February 7, 2018 at 11:20 am

    I am trying to recognize the font weight. I am working on cc2015 and cant use fontStyle like 2017 version so
    i need to read the full font’s name and the analyze it to my needs. it works beautifully the problem is that some fonts do not display the weight of the font anywhere.
    for example Open Sans bold/regular/italic will alert ” OpenSans” ;
    Roboto bold will alert “Roboto-Bold”;

    same code.
    any ideas why is it like that and can it be worked around?

    many thanks
    shai

    this is the code i am using :
    var myTextLayer = app.project.item(1).layer(1).property(“ADBE Text Properties”).property(“ADBE Text Document”);
    var myTextDoc = myTextLayer.value;
    var theFont = myTextDoc.font;
    alert(theFont);


    Shai Benshoshan replied 8 years, 3 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy