Results 1 to 3 of 3

Thread: Blurry fonts (2.3.x)

  1. #1
    Lesser Knight
    Join Date
    Jan 2011

    Question Blurry fonts (2.3.x)

    Haven't visited ClanLib project pages for a long time since "Return to Classics" quest release. Just decided to rebuild it with latest ClanLib and boost libraries versions (I also re-downloaded external ClanLib dependencies). Everything is fine except one thing: all fonts have become blurry. Have a look:

    Name:  old2.png
Views: 17
Size:  305.1 KB
    Name:  new2.png
Views: 14
Size:  309.0 KB

    Name:  old1.png
Views: 16
Size:  118.9 KB
    Name:  new1.png
Views: 12
Size:  125.1 KB

    I've noticed that something has changed in win32 font renderers, but I'm not sure, what's causing this issue. I haven't much time now to sort this out... Any ideas how to fix this?

    P.S. Using ClanLib 2.3.6. Checked all 2.3.x versions, each has the same issue. Seems that ClanLib examples has the same issue (blurry letters). ClanLib 2.2.12 is fine.

  2. #2
    ClanLib Developer
    Join Date
    May 2007


    ClanLib 2.3 has subpixel aliasing enabled by default:

    void CL_FontDescription::set_subpixel  ( bool  setting = true  )   
    Sets the font subpixel rendering setting (defaults to true).
    Therefore, to disable it - use "desc.set_subpixel(false)" in the font description when creating the font.

    The subpixel aliasing works wonders, unless the font is stretched, rotated or used on a framebuffer object in certain situations.

  3. #3
    Lesser Knight
    Join Date
    Jan 2011


    Thanks! Now I will search, how I can turn subpixel rendering off for all fonts in GUI themes...

Similar Threads

  1. I'm not on Windows, how do I do fonts!?
    By Aki Koskinen in forum Proton SDK
    Replies: 1
    Last Post: 04-14-2012, 12:52 AM
  2. Additional Fonts?
    By BigBMan in forum Proton SDK
    Replies: 1
    Last Post: 07-14-2011, 09:40 AM
  3. Blurry fonts?
    By somescripter in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 03-30-2011, 02:42 PM
  4. Linux fonts [0.9]
    By kbluck in forum Official ClanLib SDK Forums
    Replies: 10
    Last Post: 09-25-2008, 11:48 AM
  5. Fonts & Graphics
    By AllenJB in forum Game development
    Replies: 1
    Last Post: 09-16-2006, 12:00 AM



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts