freetype
[Top][All Lists]
Advanced

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

Re: [ft] Bug in FT_Stroker ?


From: David Turner
Subject: Re: [ft] Bug in FT_Stroker ?
Date: Wed, 06 Sep 2006 09:33:41 +0200

Hello Marcus,

sorry for the late answer, but I really cannot reproduce the problem
with the current version of FreeType (and the stroker hasn't changed
since a lot of time anyway).

Could you send us a small/minimalistic compilable source that exhibits
what you're experiencing ?

Thanks in advance,

- David Turner
- The FreeType Project  (www.freetype.org)

On Thu, 06 Jul 2006 17:50:02 +0200, "Marcus Tillmanns" <address@hidden> said:
> Hi all,
> 
> I'm new to this list. Let me introduce myself quickly. I'm a programmer 
> from germany, currently experimenting with freetype. I'm trying to use 
> freetype in one of my opengl projects.
> 
> Here's my problem. I don't know if this is an error of mine or the 
> freetype lib.
> 
> I tried the following: Render a stroke for the charachter '6' in the 
> Windows standard font Verdana.ttf with FT_Set_Pixel_Sizes( ... , 14);
> 
> Shortly, this failed :)
> 
> I did the following:
> * Load the font
> * create the Stroker
> *         FT_Stroker_Set( stroker, 30,
>                         FT_STROKER_LINECAP_ROUND,
>                         FT_STROKER_LINEJOIN_BEVEL,
>                         0 );
> * FT_Get_Glyph( m_ftFace->glyph, &glyph );
> * FT_Glyph_Stroke( &glyph, stroker, true );
> 
> The call FT_Glyph_To_Bitmap( &glyph, FT_RENDER_MODE_NORMAL, 0, 1 )  
> fails with error code 6
> 
> I traced a lot into the Library, and found that the Bounding box has a 
> xMin of around -20000000.
> This I traced down to an invalid value in outline->borders[1][41] where 
> this value came from.
> 
> I don't know enough about the insides of freetype to narrow it down any 
> more. It looked like the stroker has an invalid state at some point.
> 
> Could you give me any advice on how to handle this ? I'll try to use 
> another LINECAP_XX for now.
> 
> Sincerly yours,
> Marcus
> 
> 
> 
> _______________________________________________
> Freetype mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/freetype
- David Turner
- The FreeType Project  (www.freetype.org)





reply via email to

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