Beispiel #1
0
		public TextBlock (BitmapFont font, float width, string text) {
			ThreadContext.Current.EnsureGLContext();
			_font = font;
			_width = width;
			_text = text;
			_color = Vector4.One;
			_isDirty = true;
		}
Beispiel #2
0
		public TextRun (BitmapFont font, int start, float kerning, Vector4 color) {
			this.Font = font;
			this.Start = start;
			_kerning = kerning;
			_color = color;

			_chars = new Stack<BitmapChar> ();
		}
Beispiel #3
0
		public TextRun (TextRun other, int start, BitmapFont font)
            : this(font, start, other._kerning, other._color) {
		}