Font quality in labels

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
jval
Posts: 40
Joined: Mon May 04, 2015 1:46 pm

Font quality in labels

Post by jval » Thu Aug 06, 2015 1:36 pm

Hello.
Fonts in axis labels are blurry in Lighting Chart in my pc (and in other pc when I tested too).
You can see this issue in screenshot below
font question.jpg
font question.jpg (12.09 KiB) Viewed 5120 times
I tried to change FontsQuality and AntiAliasLevel properties in LC and 3D->Textures quality property of my video card (Intel graphics).
And could not achieve good results.
How can I do fonts more crispy and less blurry?
P.S. I saw this topic http://arction.com/forum/viewtopic.php? ... lity#p1271 and one advice was "Use translucent shadow in background of the texts" . I don't clearly understand how to do it so could you give me more details for this?
Thank you.

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Font quality in labels

Post by ArctionPasi » Thu Aug 06, 2015 4:58 pm

Hi,

setting a correct font is important too. All fonts wont appear similarly crisp.

Many LC text objects have a Shadow property. Not all, and axis labels are one of those.


This a is a normal Arial font, FontsQuality = Low, No shadow. Crisp, but not anti-aliased.
Arial, Low quality, no shadow
Arial, Low quality, no shadow
title-arial.png (555 Bytes) Viewed 5113 times
This is Times New Roman font, FontsQuality = Mid, Shadow.
Times New Roman, Mid quality, Shadow
Times New Roman, Mid quality, Shadow
title-times-with-shadow.png (1.88 KiB) Viewed 5113 times

Code: Select all

 m_chart.ViewXY.XAxes[0].Title.Color = Color.Black;
            m_chart.ViewXY.XAxes[0].Title.Shadow.Style = TextShadowStyle.HighContrast;
            m_chart.ViewXY.XAxes[0].Title.Shadow.ContrastColor =Color.FromArgb(100, 128, 128, 128);
            m_chart.ViewXY.XAxes[0].Title.Font = new Font("Times", 14);
            m_chart.RenderOptions.FontsQuality = FontsRenderingQuality.Mid;
We'll do our best to improve font quality in rendering in the future.
LightningChart Support Team, PT

Post Reply