[haiku-bugs] Re: [Haiku] #7797: [app_server] Alternative implementation of subpixel rendering (patch)

  • From: "leavengood" <trac@xxxxxxxxxxxx>
  • Date: Fri, 10 Aug 2012 05:28:27 -0000

#7797: [app_server] Alternative implementation of subpixel rendering (patch)
----------------------------------+----------------------------
   Reporter:  diver               |      Owner:  leavengood
       Type:  bug                 |     Status:  in-progress
   Priority:  normal              |  Milestone:  R1
  Component:  Servers/app_server  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------
Changes (by leavengood):

 * owner:  axeld => leavengood
 * status:  new => in-progress


Comment:

 To update this ticket, I was able to get nice subpixel rendering working
 by doing two things:

 1. adding this call from Claudio's patch to the app_server:

      {{{ FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT); }}}

 2. Turning on the subpixel rendering in the FreeType code, compiling it,
 and installing it.

 Also I have learned that the above call will return an error if subpixel
 rendering support is not enabled in the current build of FreeType. So I
 plan to make use of that to set a variable in app_server indicating
 whether subpixel support is available. This can then be used in the
 Appearance preferences.

 Honestly that is how this should have been implemented originally, instead
 of using a define.

 Anyhow the main reason I have not finished it is also because of two
 things:

 1. I need to take the time to study the app_server code more and figure
 out the best way for applications to ask about subpixel rendering. Since
 this FreeType code is deep within the app_server I'm concerned it may be a
 bit tedious so I have procrastinated on doing it.

 2. For this to fully work for everyone in an easy way, we need to build
 FreeType optional packages with the subpixel support turned on, for both
 GCCs (and probably now x86-64) and advise people to install those if they
 want subpixel rendering. Based on how it looks I would expect many people
 to want it. Though this could still be risky in the US with the patent
 concerns.

 Frankly I wish we would just install it in Haiku, and only remove it if we
 get threatened, because the font rendering (to my eyes at least) is just
 much, much, much better.

 Since I've been working on this, I'll take ownership.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7797#comment:12>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: