Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Font Object for latin languages

  • Font Object for latin languages

    Posted by Tudor Baican on January 23, 2024 at 2:22 pm

    Hi Friends,

    i’m startet to play with the new Font Object functionality what was added in v24.

    My script should pick me randomly a latin font.

    So far so good, but how I can filter just for fonts how support the latin language?

    I tried <b style=”font-family: inherit; font-size: inherit;”>FontObject.writingScripts <font face=”inherit”>but </font>don’t<font face=”inherit”> relay unterstand the numbers value what </font>I<font face=”inherit”> get from that function.</font>

    <font face=”inherit”>Do you have an idea for that?</font>

    var myFonts = app.fonts.allFonts;
    var fontGroup = Math.floor(Math.random() * myFonts.length);
    var fontName = Math.floor(Math.random() * myFonts[fontGroup].length);

    var rFont = myFonts[fontGroup][fontName];

    alert(rFont.writingScripts);

    Walter Soyka replied 2 years, 3 months ago 2 Members · 3 Replies
  • 3 Replies

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