All of my text appears jagged and pixelated.
I calibrated my PC clear type settings (all fonts are smooth).
However, in the Form Designer of VS, the text on buttons, labels, etc are not.
I've tried the working code below (please try the code)
Imports System.Drawing.Text
Public Class Form1
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
Dim myChosenFont As New Font("Times New Roman", 75, FontStyle.Bold, GraphicsUnit.Pixel)
e.Graphics.DrawString("Antialiasing Off", myChosenFont, Brushes.Black, 10, 10)
e.Graphics.TextRenderingHint = TextRenderingHint.AntiAliasGridFit
e.Graphics.DrawString("Antialiasing On", myChosenFont, Brushes.Black, 10, 80)
End Sub
End Class
Although it works, for reasons unknown to me:
-It does not smooth out any pre-existing text created by the form designer.
-It does not work on my buttons, labels, textboxes, etc..
-It only draws new text programatically to the form itself only.
Determined but unsuccesful, I tried the links below and attempted these to no avail:
http://www.java2s.co...liasGridFit.htm
http://msdn.microsof...y/a619zh6z.aspx
http://www.vb-helper...alias_text.html (where I received the code above from)
Is there a way to antialias smooth text throughout my entire project?
If so, could someone please provide a working example for me to use?

New Topic/Question
Reply




MultiQuote



|