Skip to Main Content Skip to Search
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Steve on Image Processing

May 9th, 2008

Anti-aliased text in color

Over the past few years I've been fascinated to see the progress in making text look better on the screen. (I should confess right away that I know nothing about typography, and almost nothing about text anti-aliasing.) I recall reading some time ago that the Microsoft ClearType technology made use of color pixels, even when displaying "black" or gray text text. I thought to myself, "I wonder how that works," and then I promptly forgot all about it.

A couple of weeks ago I was preparing to give a presentation at Yale, and I was tinkering with a screen magnifier program (ZoomIt; highly recommended) to use during my presentation. When I cranked the zoom factor all the way up, I was startled to see the colors everywhere in my text.

Here's a screen shot of a portion of my browser display:

Now here's a highly enlarged view of the word "Each":

Well! That's pretty cool. Human visual perception is a strange and wondrous thing.

Added note: Blog reader Alessandro suggests looking at the Wikipedia article on subpixel rendering for more information.

4 Responses to “Anti-aliased text in color”

  1. Alessandro Giusti replied on :

    Those color pixels are useful due to the colored RGB subpixels of TFT screens, which effectively triple the horizontal resolution.
    I agree that’s extremely cool: have a look at http://en.wikipedia.org/wiki/Subpixel_rendering

    Typography is also something deeply fascinating…

  2. Steve replied on :

    Alessandro—Thanks. I’m going to add your subpixel rendering link to the post.

  3. Nomee replied on :

    Hi Steve,
    As far as appearance on screen is concerned, these colours let the text merge into backgrounds and avoid displaying sharp edges. However capturing screen text and storing might become an issue. You capture a text field which was suppose to be a binary image however when you store it in paint or some other imaging software you see it as an RGB which may not look as crisp and even readable when converted to grayscale.

  4. Steve replied on :

    Nomee—Thanks for your comments. I don’t agree, though. I wouldn’t expect a screen capture to be binary just because text was being displayed. In fact, I would never capture or scan text to binary if I had the option otherwise. Screen captures of text on my Windows laptop look just as good as the original.

Leave a Reply


Steve Eddins manages the Image & Geospatial development team at The MathWorks and coauthored Digital Image Processing Using MATLAB. He writes here about image processing concepts, algorithm implementations, and MATLAB.

  • Steve: Michel—I’ ;ve had dilation and erosion algorithms on my blog topics list for a long time, but...
  • Michel: We are processing holograms using your toolbox in our lab. Since holograms contain 3D information, it makes...
  • Amir: Thanks a lot Steve.It was very helpful.
  • Steve: IB—In this blog post, the very one you are commenting on, the third paragraph says “Note: you can...
  • IB: Steve do you mean the cell segmentation blog? I did not found it in the cell segmentation blog
  • Administrator: Amir—I can think of multiple ways to interpret your question. Depending on what you really mean,...
  • Amir: Hi steve,I am new in matlab and need your help.I want to find (row,col) of local maximums in an image matrix...
  • Steve: Felix—I’ m glad to hear the code is working for you. I was also glad to get your comment, because...
  • Steve: IB—The third paragraph in this blog post tells you how to get the function imoverlay.
  • Steve: Tahir—The program is not mine. I simply provided a link to it.

These postings are the author's and don't necessarily represent the opinions of The MathWorks.

Related Topics