After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 104611 - a new smoothing algorithm
a new smoothing algorithm
Status: RESOLVED WONTFIX
Product: gnome-mag
Classification: Deprecated
Component: magnifier-utility
unspecified
Other All
: Low enhancement
: ---
Assigned To: bill.haneman
bill.haneman
gnome[unmaintained]
Depends on: 104729
Blocks:
 
 
Reported: 2003-01-28 13:11 UTC by Adi Dascal
Modified: 2011-10-14 10:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The proposed patch (17.57 KB, patch)
2003-01-28 13:16 UTC, Adi Dascal
needs-work Details | Review
The proposed patch (17.57 KB, patch)
2003-01-28 13:16 UTC, Adi Dascal
needs-work Details | Review

Description Adi Dascal 2003-01-28 13:11:55 UTC
A new smoothing algorithm to be added to the gnome-mag.
Comment 1 Adi Dascal 2003-01-28 13:16:21 UTC
Created attachment 13878 [details] [review]
The proposed patch
Comment 2 Adi Dascal 2003-01-28 13:16:35 UTC
Created attachment 13879 [details] [review]
The proposed patch
Comment 3 bill.haneman 2003-01-28 13:29:34 UTC
Hi Adi:

Thanks for the patch.

I see that you are doing your post-processing inline, that is, in the
same thread as the rest of the zoom region update.  Given the
complexity of the smoothing code I suggest that it should go into an
idle handler, as suggested in the comment in zoom-region.c:

  /**
   * ADI: This is where your image smoothing code
   * hooks into the magnifier.  This routine can call others which
   * post-process the GdkPixbuf before rendering to the screen.
   *
   * We can make this a two-stage process also, whereby the
post-process code
   * is only called in a lower-priority idle handler, and queues repaints
   * when it is done.
   **/

I will apply the patch and see what the performance impact is like,
but I expect we may need to change the code to use an idle handler
before checking the changes into CVS.

-Bill
Comment 4 Adi Dascal 2003-01-28 13:42:22 UTC
I think you are right.

In addition I want to mention a crash that appears in
zoom_region_update function, at line 1912 (with my patch), in some
cases, and wich I suspect to be caused by the update mechanism. BUT I
am not really sure. I really hope that you could tell me if I am right
or not. If NOT, I would really apreciate some help, because I am
running out of ideas.

Comment 5 Calum Benson 2003-08-07 16:09:18 UTC
Apologies for spam... marking as GNOMEVER2.3 so it appears on the official GNOME
bug list :)
Comment 6 Calum Benson 2003-10-20 15:17:48 UTC
Apologies for spam; marking as AP3 so it appears in the right place on
our buglist.
Comment 7 alexander.winston 2004-01-25 00:03:38 UTC
Adding the PATCH keyword.
Comment 8 bill.haneman 2004-01-26 10:53:49 UTC
removing PATCH keyword since existing patch is not suitable for
application.
Comment 9 bill.haneman 2004-01-26 10:55:53 UTC
note the dependency on 104729; we can't apply compute-intensive
smoothing algorithms until we put the architecture in place for doing
the smoothing in an idle handler of lower priority than the usual
'update' idle handler.
Comment 10 Calum Benson 2004-10-21 16:43:09 UTC
Apologies for spam-- ensuring Sun a11y team are cc'ed on all current a11y bugs.
 Filter on "SUN A11Y SPAM" to ignore.
Comment 11 Carlos Eduardo Rodrigues Diógenes 2006-05-25 14:00:23 UTC
Adi, could you update this patch to the current gnome-mag code?

Other thing, where I can find text that explaim the algorithm that you are using. I think that it's important to us have a theoretical reference to it.
Comment 12 korn 2006-05-25 14:57:26 UTC
Unfortunately Adi Dascal is no longer working on Gnopernicus (or at BAUM).  Perhaps someone else at BAUM (Remus?) might be able to work on this?
Comment 13 Carlos Eduardo Rodrigues Diógenes 2006-05-25 20:18:35 UTC
I applied the patch here and find that it's works better when the Font Rendering, in the Font Preferences, is setted to Monochrone. I think that this is an important information to other assistive tecnologies developers, like the ones fromm gnopernicus and orca. I don't know if it's important to put this information somewhere else.
Comment 14 Carlos Eduardo Rodrigues Diógenes 2006-11-27 22:03:11 UTC
Just FWY, this patch appear to use a Sobel mask to detect edges and then make triangles joining the pixels that make the edge.
Comment 15 Carlos Eduardo Rodrigues Diógenes 2006-11-27 22:22:52 UTC
I percepted that the letters smoothed by this sometime appear incomplete. Someone have this same issue? Any guess where is the source of this behavior?
Comment 16 Carlos Eduardo Rodrigues Diógenes 2006-11-29 16:34:31 UTC
Adi patch is intended for font smoothing, isn't is? Modifications in how applications render fonts must be made or in how the code works. I think that the  first one is simpler. This can be a GNOME goal?

If you set in Font Preferences the Font Rendering option to Monochrome some applications continue to use anti-aliasing in the rendering. I notice this in Epiphany, Abiword and Firefox. Probably more applications present this behavior.

Maybe we can modify the algorithm a little to make it work better with anti-aliased fonts, but when you add Subpixel smoothing the things get more difficult.

Other way to achieve better font smooth is throw cooperation with Xserver, but this is not a short-term solution for the problem IMO.

Comments about this are welcome, since font smooth is something very appreciate from some visually impaired users.
Comment 17 Akhil Laddha 2011-10-14 10:47:44 UTC
gnome-mag development has been stalled and it has been replaced by gnome-shell
mag [1]. Maintainers don't have future development plan so i am closing all the bugs as WONTFIX.

[1] https://mail.gnome.org/archives/gnome-bugsquad/2011-October/msg00001.html