ElementFormat.hx 1.1 KB

12345678910111213141516171819202122232425
  1. package flash.text.engine;
  2. @:final extern class ElementFormat {
  3. var alignmentBaseline : TextBaseline;
  4. var alpha : Float;
  5. var baselineShift : Float;
  6. var breakOpportunity : BreakOpportunity;
  7. var color : UInt;
  8. var digitCase : DigitCase;
  9. var digitWidth : DigitWidth;
  10. var dominantBaseline : TextBaseline;
  11. var fontDescription : FontDescription;
  12. var fontSize : Float;
  13. var kerning : Kerning;
  14. var ligatureLevel : LigatureLevel;
  15. var locale : String;
  16. var locked : Bool;
  17. var textRotation : TextRotation;
  18. var trackingLeft : Float;
  19. var trackingRight : Float;
  20. var typographicCase : TypographicCase;
  21. function new(?fontDescription : FontDescription, fontSize : Float = 12, color : UInt = 0, alpha : Float = 1, ?textRotation : TextRotation, ?dominantBaseline : TextBaseline, ?alignmentBaseline : TextBaseline, baselineShift : Float = 0, ?kerning : Kerning, trackingRight : Float = 0, trackingLeft : Float = 0, ?locale : String, ?breakOpportunity : BreakOpportunity, ?digitCase : DigitCase, ?digitWidth : DigitWidth, ?ligatureLevel : LigatureLevel, ?typographicCase : TypographicCase) : Void;
  22. function clone() : ElementFormat;
  23. function getFontMetrics() : FontMetrics;
  24. }