I am working on a C# application
I want to use custom Unicode fonts for writing in TextBox. My problem is that the font letters do not fit into the TextBox, they get cut off at the top and bottom.
The font is imported
The TextBox is setup
This is how it looks like when i write.
![]()
Is there a way to change the size of the line size so that it will not cut of my letters?
I want to use custom Unicode fonts for writing in TextBox. My problem is that the font letters do not fit into the TextBox, they get cut off at the top and bottom.
The font is imported
this._fonts = new PrivateFontCollection(); this._fonts.AddFontFile("SyrCOMBatnan.otf"); customFontTextBox = new System.Drawing.Font(_fonts.Families[0], 25.0F); this.textBox1.Font = customFontTextBox;
The TextBox is setup
this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox1.Location = new System.Drawing.Point(326, 16); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.textBox1.ShortcutsEnabled = false; this.textBox1.Size = new System.Drawing.Size(658, 179); this.textBox1.TabIndex = 0; this.textBox1.TextChanged += new System.EventHandler(this.TextBox1TextChanged);
This is how it looks like when i write.

Is there a way to change the size of the line size so that it will not cut of my letters?