Click here to Skip to main content
11,583,865 members (63,134 online)
Rate this: bad
good
Please Sign up or sign in to vote.
Hi everyone,

This is not regarding a C# code, but the font displayed on a Label control.
I'm using "Segoe UI" font and displaying a simple line of text on a Label control.
What happens is, when I increase the font size to 36px or above, the text appears pixilated on the Label. Is there any solution to avoid this? How does Windows achieve this on a Metro Style app with the same font?

Thanks in advance.
Posted 28-Sep-12 20:15pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You could try to implement the painteventhandler and there you are able to antialias your font using this sample here:
http://msdn.microsoft.com/en-us/library/a619zh6z.aspx[^]
  Permalink  
Comments
Espen Harlinn at 29-Sep-12 6:51am
   
5'ed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 480
1 Sergey Alexandrovich Kryukov 285
2 virusstorm 268
3 Dave Kreskowiak 230
4 Richard Deeming 220
0 OriginalGriff 1,523
1 Sergey Alexandrovich Kryukov 995
2 Abhinav S 696
3 Dave Kreskowiak 621
4 Suvendu Shekhar Giri 568


Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 29 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100