C # changing font metrics (especially line spacing)

In C #, I would like to programmatically change the font metrics of a downloadable font.

Font myFont = new Font("arial", 14, FontStyle.Regular)

For a font family, I can request font metrics, such as line spacing, but I cannot change them. And for a particular font, no (as far as I can tell, request font metrics).

I am particularly interested in trying to increase the line spacing without returning to using graphics.DrawString () and a lot of font dimensions.

So far I have found this MSDN page: http://msdn.microsoft.com/en-us/library/xwf9s90b.aspx

+5
source share

No one has answered this question yet.


All Articles