code_junkie

How do I independently change the width and height of a font in .NET?

Nov 12th, 2011
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. Matrix m = new Matrix();
  2. m.Scale(3, 1);
  3. g.Transform = m;
  4. g.DrawString("Some text", this.Font, Brushes.Black, new PointF(10, 10));
  5. g.ResetTransform();
Add Comment
Please, Sign In to add comment