Hi,
I have a TextBox and a SyntaxEditor on a form.
I set the same font using the following code:
syntaxEditor1.MinimumDisplayLineHeight = 0;
var f1 = newFont(aFontName, aFontSize);
var f2 = newFont(aFontName, aFontSize);
textBox1.Font = f1;
syntaxEditor1.Font = syntaxEditor1.LineNumberMarginFont = syntaxEditor1.UserMarginFont = f2;
I'd like the two controls have exactly the same appearance. Is it possible?
Now line height in syntaxeditor is greater or less than textbox line height depending by font name/size.
Could yuo help me, please? Thank you.