Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects SetFont on specific substring – change style of only one letter in text layer

  • SetFont on specific substring – change style of only one letter in text layer

    Posted by Luke Bosshard on June 8, 2020 at 12:48 pm

    Hi all!

    I’m trying to change the font on only one letter of a text layer.
    Can i use the substring to isolate the letter and use setFont to change that specific letter?

    this is roughly what i’m trying here, obviously not working.

    style.setFont(“Rhode-MediumExtended”);
    substr(2,3)
    ;

    thanks!

    Chaz Chester replied 5 years, 10 months ago 3 Members · 2 Replies
  • 2 Replies
  • Filip Vandueren

    June 21, 2020 at 7:13 pm

    It is not possible in After Effects,
    you can only set Font-attributes for the entire layer via scripting/expressions.

  • Chaz Chester

    June 23, 2020 at 12:49 am

    This might be a dumb way of doing it, but maybe as a workaround, you could store the text before that letter, the letter itself, and the text following that letter, and then remove the text layer and generate three new text layers in its place, each with a piece of the original text in the font you need.

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