FontDialog Only Allows Integrals?
Dim fd As New FontDialog
fd.ShowDialog()
Console.WriteLine(fd.Font.SizeInPoints)
If I choose a the font size to be 10 here, the output is 9.75. If I choose
the font size to be 11 here, the output is 11.25. 8 gets 8.25 and 9 gets 9.
So I see what you are saying there, sort of.
What initially brought my question up is when you actually have that font
dialog open, you are forbidden from inputting 9.75, it forces you to put a
positive integer in. Which seems weird, considering that all the Font.Size
methods return Singles.
I'm using scaled fonts through Graphics, and I have not had a problem having
all sorts of font sizes (8.198598 as a point size works beautifully); I'm not
limited to what the FontDialog is rounding me to.
So I guess my main problem is still that the FontDialog inexplicably
prevents my users from using singles. I'm confused as to, if I want the
Dialog to return to me a Font with height 10 or 10.5, why it can't actually
do that. It seems odd that it is limiting itself to one sort of resolution.
Perhaps I'm not understanding what the Size box is intended to be when you
open a FontDialog.
Thanks,
Mike
|