Quantcast
Channel: Adobe Community : Unanswered Discussions - After Effects
Viewing all articles
Browse latest Browse all 30854

Obtaining/Exporting Font Metrics through a Script

$
0
0

I have a Text Layer consisting of characters with varying font metrics (say Font Height, Typeface, Kerning, Leading etc). Am unable to export out the Font metrics through an AE script.

I was able to get the Font Name, Height, Fill and Stroke properties of the first character from the Text Document.

 

var textDoc = layer("sourceText") ;

var textDef = textDoc.valueAtTime(0, false) ;

 

I was able to get the Font Name, height, justification, fill and stroke properties from textDef.

But, I have no clue about getting the other properties like Kerning,  Leading, Tracking etc.

 

It will be ideal if I can get all the concerned font metrics of each character in the Text Layer (separately).

 

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 30854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>