protected virtual void CreateText() { ApplyTextOffset(); //Point characterDimensions = TextFont.Font.MeasureString(LastChar).ToPoint(); Point currCharDim = DisplayText.Size(TextFont).ToPoint(); int x = currCharDim.X; int y = currCharDim.Y; Point newPosition = new Point(x, y); CharBucket.AddCharacter(LastChar, newPosition, currCharDim); }
protected override void CreateText() { ApplyTextOffset(); Point textDimensions = DisplayText.Size(TextFont).ToPoint(); //Point characterDimensions = TextFont.Font.MeasureString(LastChar).ToPoint(); int x = (int)textDimensions.X; int y = (int)textDimensions.Y; //y = y <= Top + 2 ? Pointer.Height : y; Point newPosition = new Point(x, y); CharBucket.AddCharacter(LastChar, newPosition, textDimensions); ProcessString(); }