I want to use a thin font weight in my win forms window. The only thing I've been able to find is FontStyle, but I can only choose from Bold, Italic, Regular, Strikeout and underline. No possibility to make my font thin. Preferably, I'd like to be able to specify the font weight (100, 200 etc).
I've not tried it, but looking through CreateFont function I believe it can certainly be done via P/Invoking CreateFont function.
It takes a parameter fnWeight which is font weight. Then you could call Font.FromHFont method to get the instance of Font.
You will have to include a font file of a thin weight font in your deployment.
Then you can use it within your app.
This will likely cost you licensing I'm afraid. Wpf does make it easier so might be a more viable option depending on how great the need and how great the budget.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With