How to fix blurry text (title, axis labels, and axis tick labels) #823
-
|
Hello, I have a problem with blurry texts which is a common problem in wpf. Titles and text in graphics look blurry. Unfortunately, the following commands I applied to textblocks did not have any effect. TextOptions.TextFormattingMode="Display" TextOptions.TextRenderingMode="ClearType" |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
|
Hi @saklanmazozgur, Text rendering is handled by A better option could be to not populate the Hope it helps! |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your suggestions. Thank you for taking into account that it makes much more sense to have detailed control by adding a normal label. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @swharden , First of all, I'm sorry, I was late to look at this because I was dealing with a different project. I just changed the header control. YLabel, doing the XLabel posts myself did much worse. I made changes using a textblock in the title. There was an improvement in appearance, even if it was small. I am also adding a few images of the project I made. This chart really turned out to be perfect for me. I added different colors that the user can change to the menu part of the chart. I am also thinking of adding new styles. With the toggleSwitch on the upper right, I left the data on the chart to be shown or not at the user's request. I continue to develop it further. Thanks again for the graphic. I don't know why but github generates an error while adding images. For this reason, I add pictures from a different site and share the link. Title Beforehttps://ibb.co/h8FW2Y6 Title Afterhttps://ibb.co/1z9vJ4P Example Screenshotshttps://ibb.co/QHtCD1Y https://ibb.co/mJcSVV2 |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for ScottPlot. :) |
Beta Was this translation helpful? Give feedback.
-
|
@swharden |
Beta Was this translation helpful? Give feedback.







Hi @saklanmazozgur,
Text rendering is handled by
System.Drawingso we don't have much control over how it is rendered. You could disable anti-aliasing ScottPlot FAQ: Anti-Aliasing but this would probably make the image look worse.A better option could be to not populate the
XLabel,YLabel, andTitle, but instead surround yourWpfPlotwith actualLabelelements in your WPF layout. This will give you full control over that text, and is guaranteed to look nice even in conditions that use things like display scaling.Hope it helps!
Scott