[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] Freetype2 & gamma correction
From: |
Billy Biggs |
Subject: |
Re: [Devel] Freetype2 & gamma correction |
Date: |
Fri, 28 Mar 2003 18:07:42 -0600 |
User-agent: |
Mutt/1.3.28i |
Vincent Caron (address@hidden):
> Then, you must also question the notion of 'coverage', since it
> involves a kind of filtering on the pixel. AFAIK, FreeType smooth
> rasterizer does a 'box filtering' (?). I was wondering if it would be
> hard to plug a 'filtering function' on the current rasterizer.
> Obviously, you can ask FreeType to oversample NxN and then do your own
> pixel coverage computation for each NxN block. Does anybody have tried
> such an experiment ?
Funny, I'm actually working on this 'experiment' right now. :) I was
planning on doing it the cheap way and having freetype render to a large
bitmap, then sample that myself, but of course eventually I'll have to
do my own point sampler based on the glyph outline. Unless of course
someone already has some glyph point sampling code, which would be
ideal. ;-)
A main reason I want to do the point sampling method is that it will
make my hacked code for doing borders around glyphs alot easier, I can
do a cheap convolution by just drawing, say, a circle for every pixel in
the supersampled version, and then point sampling that. Wouldn't be as
accurate as trying to enlarge the glyph curves directly and point
sampling that, but would be cheap in terms of time to code.
Anyone else have any thoughts?
--
Billy Biggs
address@hidden