Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expression in source text do not display the correct font.

  • Expression in source text do not display the correct font.

    Posted by Maxime Archambault on May 14, 2024 at 3:33 pm

    I have apply a expression to the source text of my text layer.
    it grab the comp name and split it in 2 part to be display.

    my problem the font is not display correctly where the expression is apply.
    The problem is for this specific font other look like to work.

    I was wondering is something can be update in the expression.
    or
    it just a random problem that have no explanation.

    my expression:

    // “–“= split in section

    // [0]= befor “–“

    // [1]= after “–“

    var line1 = thisComp.name.split(“–“)[1];

    var line2 = thisComp.name.split(“–“)[2];

    // “\r”= enter

    var newText = line1 + “\r” + line2;

    //print new text

    newText

    Maxime Archambault replied 2 years ago 2 Members · 2 Replies
  • 2 Replies
  • Nils Hammers

    May 15, 2024 at 11:22 am

    This very likely might not be related to the sourceText property, rather could be something with other properties responsible for the style.

  • Maxime Archambault

    May 15, 2024 at 11:55 am

    I continued to play and found out that:

    it was related to the
    • “All CAP” property,
    • the lowercase in the text,
    • the main font.

    “Hello, world” has to be “HELLO WORLD” and everything works.
    The “ALL CAP” property applies the “ALL CAP” but not the selected font, probably a problem in the font’s incomplete glyph. It was a poor-quality font.

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