[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft] Bug in FT_Stroker ?
From: |
Marcus Tillmanns |
Subject: |
[ft] Bug in FT_Stroker ? |
Date: |
Thu, 06 Jul 2006 17:50:02 +0200 |
User-agent: |
Thunderbird 1.5.0.4 (Windows/20060516) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [ft] Bug in FT_Stroker ?,
Marcus Tillmanns <=