FontDescription.hx 1.7 KB

1234567891011121314151617181920212223242526272829
  1. package flash.text.engine;
  2. extern final class FontDescription {
  3. @:flash.property var cffHinting(get,set) : CFFHinting;
  4. @:flash.property var fontLookup(get,set) : FontLookup;
  5. @:flash.property var fontName(get,set) : String;
  6. @:flash.property var fontPosture(get,set) : FontPosture;
  7. @:flash.property var fontWeight(get,set) : FontWeight;
  8. @:flash.property var locked(get,set) : Bool;
  9. @:flash.property var renderingMode(get,set) : RenderingMode;
  10. function new(?fontName : String, ?fontWeight : FontWeight, ?fontPosture : FontPosture, ?fontLookup : FontLookup, ?renderingMode : RenderingMode, ?cffHinting : CFFHinting) : Void;
  11. function clone() : FontDescription;
  12. private function get_cffHinting() : CFFHinting;
  13. private function get_fontLookup() : FontLookup;
  14. private function get_fontName() : String;
  15. private function get_fontPosture() : FontPosture;
  16. private function get_fontWeight() : FontWeight;
  17. private function get_locked() : Bool;
  18. private function get_renderingMode() : RenderingMode;
  19. private function set_cffHinting(value : CFFHinting) : CFFHinting;
  20. private function set_fontLookup(value : FontLookup) : FontLookup;
  21. private function set_fontName(value : String) : String;
  22. private function set_fontPosture(value : FontPosture) : FontPosture;
  23. private function set_fontWeight(value : FontWeight) : FontWeight;
  24. private function set_locked(value : Bool) : Bool;
  25. private function set_renderingMode(value : RenderingMode) : RenderingMode;
  26. @:require(flash10_1) static function isDeviceFontCompatible(fontName : String, fontWeight : FontWeight, fontPosture : FontPosture) : Bool;
  27. static function isFontCompatible(fontName : String, fontWeight : FontWeight, fontPosture : FontPosture) : Bool;
  28. }