FORUMS: list search recent posts

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

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Luke Bosshard
SetFont on specific substring - change style of only one letter in text layer
on Jun 8, 2020 at 12:48:41 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!


Return to posts index

Filip Vandueren
Re: SetFont on specific substring - change style of only one letter in text layer
on Jun 21, 2020 at 7:13:14 pm

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



Return to posts index

Chaz Chester
Re: SetFont on specific substring - change style of only one letter in text layer
on Jun 23, 2020 at 12:49:17 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.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]