How to anti-alias the fonts in visual studio in windows forms application?

China☆狼群 提交于 2019-12-31 03:00:53

问题


enter link description heredoes any one know the code to anti alias the fonts so that the project looks more professional.tell me the code and where to insert it in the project.As of now the fonts looks jaggy the programming language is visual C# 4.0 .net and IDE is VS 2010

for example this is a label1 what do I need to insert to anti alias

this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(189, 187);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(31, 13);
this.label1.TabIndex = 0;
this.label1.Text = "from";

why this fonts look so crisp and smooth whereas the fonts in windows form doesnt look so good

来源:https://stackoverflow.com/questions/13110677/how-to-anti-alias-the-fonts-in-visual-studio-in-windows-forms-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!