freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freetype] glyph-outlines


From: Werner LEMBERG
Subject: Re: [Freetype] glyph-outlines
Date: Wed, 02 Jun 2004 22:44:58 +0200 (CEST)

> I'm having troubles in correctly reading the outline of a glyph. When 
> looking at the points that define the outline I get a list of points 
> which are highly redundant and don't make sense at all. A typical 
> output of a glyph outline my program produces looks like this:
> 
> index 67 glyph_index: 60
>      outline 0 from point 0 to point 27
>          point 0 on curve  x 0 y 128
>          point 1 on curve  x 0 y 128
>          point 2 off conic  x 0 y 128
>          point 3 on curve  x 0 y 128
>          point 4 off conic  x 0 y 128
>          point 5 on curve  x 0 y 128
>          etc.....

If you load a glyph with the FT_LOAD_DEFAULT flag, you have to set up
the size with a call to FT_Set_Char_Size before calling FT_Load_Glyph
which you haven't done.  What you probably want is not FT_LOAD_DEFAULT
but FT_LOAD_NO_SCALE to get the coordinates in font units.


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]