[ft-devel] Higher Quality 2D Text Rendering paper

2013-05-15 Thread Nicolas Rougier
Hi, I just published a paper on Higher Quality 2D Text Rendering that rely heavily on the FreeType library, OpenGL and principles exposed by Maxim Shemarev (AntiGrain Geometry). It is available from http://jcgt.org/published/0002/01/04/ and most of the code is available from

[ft-devel] Proper way of citing freetype

2013-03-04 Thread Nicolas Rougier
Hi, I would like to cite the Freetype project in a paper but I'm not sure on what is the proper way to do so. Would anyone have a bibtex entry ? Nicolas ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] Signed distance fields: distance from any point to the glyph contours

2012-10-31 Thread Nicolas Rougier
I was afraid of such answer indeed... Too bad, I will stick to my current implementation. Thanks for the answer. Nicolas On Oct 31, 2012, at 15:25 , Alexei Podtelezhnikov wrote: On Tue, Oct 30, 2012 at 6:56 AM, Nicolas Rougier nicolas.roug...@inria.fr wrote: My question relates

Re: [ft-devel] Signed distance fields: distance from any point to the glyph contours

2012-10-31 Thread Nicolas Rougier
... Nicolas On Oct 31, 2012, at 17:03 , Behdad Esfahbod wrote: On 12-10-31 07:25 AM, Alexei Podtelezhnikov wrote: On Tue, Oct 30, 2012 at 6:56 AM, Nicolas Rougier nicolas.roug...@inria.fr wrote: My question relates to a more direct way to compute the signed distance and to know if anyone has

Re: [ft-devel] Signed Euclidean Distance Transform (was Signed distance fields: distance from any point to the glyph contours)

2012-10-31 Thread Nicolas Rougier
Thanks for the reference and the code. I've been using code from http://contourtextures.wikidot.com since it can handle antialiased images and then I use grayscale rendering of the glyph to increase precision. Do you know if the Meijster method also handles grayscale images ? Nicolas On Oct

[ft-devel] Signed distance fields: distance from any point to the glyph contours

2012-10-30 Thread Nicolas Rougier
Hi, One technics for rendering scalable text in OpenGL is the use of signed distance fields (signed distance to the glyph outlines) that are stored in a texture. Results are not perfect but acceptable in most cases. The way to compute such distance fields in freetype-gl

Re: [ft-devel] Glyph metrics figures on the website

2012-10-27 Thread Nicolas Rougier
Ok. Done ! Nicolas On Oct 27, 2012, at 8:36 , Werner LEMBERG wrote: I replaced the CM font with the STIX one (most easy with matplotlib). OK. http://webloria.loria.fr/~rougier/tmp/glyph-metrics-horizontal.pdf http://webloria.loria.fr/~rougier/tmp/glyph-metrics-vertical.pdf

[ft-devel] Glyph metrics figures on the website

2012-10-26 Thread Nicolas Rougier
Hi, I just added an example in the freetype-py (python bindings) to reproduce glyph metrics as displayed on the website. You can see results at: http://webloria.loria.fr/~rougier/tmp/glyph-metrics.pdf (sources:

Re: [ft-devel] Glyph metrics figures on the website

2012-10-26 Thread Nicolas Rougier
Here are the two files. I replaced the CM font with the STIX one (most easy with matplotlib). (not so sure how to use the ones you suggested with matplotlib). http://webloria.loria.fr/~rougier/tmp/glyph-metrics-horizontal.pdf http://webloria.loria.fr/~rougier/tmp/glyph-metrics-vertical.pdf

[ft-devel] Wavelet rasterization

2012-04-10 Thread Nicolas Rougier
Hi, I've stumbled upon this paper that claim wavelet rasterization may give better cell coverage (than freetype): http://josiahmanson.com/research/wavelet_rasterization/ I'm not specialist at all but I thought it might be of some interest for freetype. Nicolas

[ft-devel] harfbuzz experience anyone ?

2012-01-05 Thread Nicolas Rougier
Hi all, Does anybody has some experience in using the harfbuzz (http://freedesktop.org/wiki/Software/HarfBuzz) library with freetype ? I cloned the old version (harfbuzz.old, because the new one is not stable nor documented) but I did not find running examples. The contrib directory has some

Re: [ft-devel] harfbuzz experience anyone ?

2012-01-05 Thread Nicolas Rougier
Thanks. For the record, I posted some (still buggy) code to the HarfBuzz mailing list. I will post updates on the HarfBuzz list. Nicolas On Jan 5, 2012, at 22:49 , Behdad Esfahbod wrote: On 01/05/2012 04:13 AM, Nicolas Rougier wrote: Hi all, Hi Nicolas, Does anybody has some

Re: [ft-devel] FT_Get_Char, FT_Get_Next_Char

2011-09-26 Thread Nicolas Rougier
Thanks for the explanation. I've transmitted your answer on the freetype-py issue page. Nicolas On Sep 26, 2011, at 9:29 , Werner LEMBERG wrote: I'm getting the following output: Num glyphs: 3 char: 32 (index = 1) char: 160 (index = 1) How do I get the last char ? (or did I do

Re: [ft-devel] FT_Get_Char, FT_Get_Next_Char

2011-09-25 Thread Nicolas Rougier
On Sep 25, 2011, at 12:39 , Werner LEMBERG wrote: Using the following code with the attached (very small) font: No font attached. BTW, never ever send complete non-free fonts to this list! Small, subsetted ones are OK. I thought I had attached it. It is available from:

[ft-devel] FT_Get_Char, FT_Get_Next_Char

2011-09-23 Thread Nicolas Rougier
Hi folks,Using the following code with the attached (very small) font:#include stdio.h #include ft2build.h #include FT_FREETYPE_H int main(int argc, char **argv) { FT_Face face; FT_UInt gindex; FT_ULong charcode; FT_Library library;

Re: [ft-devel] [ANN] Freetype/OpenGL (with good rendering quality)

2011-09-21 Thread Nicolas Rougier
. I am not sure I understood how you do subpixel positioning from the texture. On Wed, Sep 21, 2011 at 6:55 AM, Nicolas Rougier nicolas.roug...@inria.fr wrote: Hi Folks, You might be interested in the following code that allow to render freetype font using OpenGL with quite good