Browse Source

use _sans font

Nicolas Cannasse 18 years ago
parent
commit
9505160fe4
3 changed files with 9 additions and 0 deletions
  1. 3 0
      doc/CHANGES.txt
  2. 3 0
      std/flash/Boot.hx
  3. 3 0
      std/flash9/Boot.hx

+ 3 - 0
doc/CHANGES.txt

@@ -1,3 +1,6 @@
+2007-??-??: 1.16
+	use _sans font for default flash traces (better Linux support)
+
 2007-08-29: 1.15
 	fixed bug with Enum.construct when Enum have type parameters
 	change with "untyped" : arguments types are checked (because of opt select)

+ 3 - 0
std/flash/Boot.hx

@@ -160,6 +160,9 @@ class Boot {
 		if( tf == null ) {
 			root.createTextField("__trace_txt",1048500,0,0,Stage.width,Stage.height+30);
 			tf = root.__trace_txt;
+			var format = tf.getTextFormat();
+			format.font = "_sans";
+			tf.setNewTextFormat(format);
 			tf.selectable = false;
 			tf.textColor = def_color;
 			root.__trace_lines = new Array<String>();

+ 3 - 0
std/flash9/Boot.hx

@@ -96,6 +96,9 @@ class Boot extends flash.display.MovieClip {
 		var mc = flash.Lib.current;
 		if( tf == null ) {
 			tf = new flash.text.TextField();
+			var format = tf.getTextFormat();
+			format.font = "_sans";
+			tf.defaultTextFormat = format;
 			tf.selectable = false;
 			tf.width = mc.stage.stageWidth;
 			tf.autoSize = flash.text.TextFieldAutoSize.LEFT;