예제 #1
0
 public CompiledTextElement(string text, Vector2 position, FormatInstruction formatInstruction)
 {
     _text              = text;
     this.position      = position;
     _formatInstruction = formatInstruction;
     size = formatInstruction.font.measureString(text) * formatInstruction.scale;
 }
예제 #2
0
 public CompiledTextElement(string text, Vector2 position, FormatInstruction formatInstruction)
 {
     _text              = text;
     this.Position      = position;
     _formatInstruction = formatInstruction;
     Size = formatInstruction.Font.MeasureString(text) * formatInstruction.Scale;
 }
예제 #3
0
파일: MarkupText.cs 프로젝트: prime31/Nez
		public CompiledTextElement( string text, Vector2 position, FormatInstruction formatInstruction )
		{
			_text = text;
			this.position = position;
			_formatInstruction = formatInstruction;
			size = formatInstruction.font.measureString( text ) * formatInstruction.scale;
		}