D
D
Diamond2016-05-08 19:16:49
.NET
Diamond, 2016-05-08 19:16:49

How to make normal font in bitmap?

There is a pictureBox1, in it, when the button is pressed, a graph is drawn, for this I use a bitmap, but when I want to display the coordinates themselves, it displays normally through DrawString, but the font is displayed in bold and even FontStyle.Regular does not save. How can this problem be solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2016-05-08
@petermzg

There is not enough information on how you create and use this font.
This is how it works:

InfoFont = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
...
g.DrawString(txtPrice, betsView.InfoFont, fontBrush, rect, sf);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question