actually, it's nothing to do with float and size, it's GraphicsUnit.Display causes the trouble, try to use anything but Display, like:
Font font = new Font( "Arial", 8, FontStyle.Regular, GraphicsUnit.Point ); // or
Font font = new Font( "Arial", 8, FontStyle.Regular, GraphicsUnit.Pixel ); // or
Font font = new Font( "Arial", 8, FontStyle.Regular, GraphicsUnit.Millimeter );
everything will work just fine
regards,
mik
Main Topics
Browse All Topics





by: dunglaPosted on 2005-05-05 at 18:37:42ID: 13941639
You should change to 8F not 8. Here is the correct
Font font = new Font( "Arial", 8F, FontStyle.Regular, GraphicsUnit.Display)