I’m trying to use the SF Mono font in the Medium weight. The FontStyle argument doesn’t seem to work with “Medium”, and wants either Regular or Bold. This locks me out of Light and Heavy too. Code:
this.richTextBox1.Font = new System.Drawing.Font("SF Mono", 10.2F, System.Drawing.FontStyle.Medium, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
(this is my first post here)
I have tried manually typing it in, but it reverts to MicrosoftSansSerif. Didn’t expect that to work, but is there any other way to use other weights from the font than Regular and Bold?
New contributor
HeavyGoat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.