Posted By

Winkyboy on 11/19/08


Tagged

actionscript fonts as2 kern kerning


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

imhugo


AS2 Kerning dynamic text fields


 / Published in: ActionScript
 

URL: http://winkyboy.blogspot.com/2007/12/programming-flash-kerning-dynamic-text.html

  1. function kernText(whichField, kerning)
  2. {
  3. whichField.html = true;
  4.  
  5. var newFormat:TextFormat = new TextFormat();
  6. newFormat.letterSpacing = kerning;
  7. //newFormat.font = "Arial";
  8.  
  9. whichField.setTextFormat(newFormat);
  10. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Winkyboy on July 22, 2009

Kern the text initially, and after every update.

You need to login to post a comment.