Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 旋转时标签字体酥脆缺失,如何克服这个问题?_C#_Winforms - Fatal编程技术网

C# 旋转时标签字体酥脆缺失,如何克服这个问题?

C# 旋转时标签字体酥脆缺失,如何克服这个问题?,c#,winforms,C#,Winforms,下面的代码我得到了旋转,一切都很好,但只有字体脆没有得到,请帮助 randz.CustomControls.VerticalLabel ctrl = new randz.CustomControls.VerticalLabel(); ctrl .Text = nodeval; ctrl .Name = LableName; ctrl .Location = new Point(x, y);

下面的代码我得到了旋转,一切都很好,但只有字体脆没有得到,请帮助

randz.CustomControls.VerticalLabel ctrl = new randz.CustomControls.VerticalLabel();
                ctrl .Text = nodeval;
                ctrl .Name = LableName;
                ctrl .Location = new Point(x, y);
                ctrl .TextDrawMode = randz.CustomControls.DrawMode.BottomUp;
                ctrl .Width = 20;
                ctrl .BackColor = Color.Yellow;
                ctrl .RenderingMode = System.Drawing.Text.TextRenderingHint.SystemDefault;

尝试其他文本渲染提示,并使用SmoothingMode播放。还要注意crispyness与平滑度相反。我尝试了SystemDefault、AntiAlias、AntialiasGridFit、ClearTypeGridFit、SingleBitPerPixel、,SingleBitPerPixelGridFit,但字体将采用相同的方式。字体渲染改进技术,如TrueType提示和ClearType消除混叠,经过优化,仅适用于水平文本,而在垂直文本上效果不太好。Graphics.DrawString()也没有帮助。唯一可行的方法是绘制更大的高分辨率显示器。我的要求是打印所有垂直文本标签的模板,因此,我必须做什么来克服字体的清晰度?尝试其他文本渲染提示,并使用平滑模式。还要注意crispyness与平滑度相反。我尝试了SystemDefault、AntiAlias、AntialiasGridFit、ClearTypeGridFit、SingleBitPerPixel、,SingleBitPerPixelGridFit,但字体将采用相同的方式。字体渲染改进技术,如TrueType提示和ClearType消除混叠,经过优化,仅适用于水平文本,而在垂直文本上效果不太好。Graphics.DrawString()也没有帮助。唯一可行的方法是绘制更大、高分辨率的显示器。我的要求是打印一个包含所有垂直文本标签的模板。因此,我必须做什么来克服字体的清晰度?