freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] Strange fill problem


From: Walker
Subject: Re: [Devel] Strange fill problem
Date: Wed, 12 Dec 2001 09:34:03 +0800

hi David:

> You seem to have it a pretty rare bug in the rasterizer.
> What version of FreeType are you using ?

    I used version 2.0.4. I can not resolve this problem , but found this 
problem come from:  function grays_sweep(RAS_ARG_ FT_Bitmap*  target)
    if cur < limit the rasterizer fills to the end of the clipping region. 
There is no problem in most times, but if the outline is large and cells number 
too small, the filler will come to "else" . 
    Adjust the global static var  gpool_size can prevent this problem temporary.
    

        
///////////////////////////////////////////////////////////////////////////
   if (cur < limit && start->y == cur->y)
   {
    /* draw a gray span between the start cell and the current one */
    if (cur->x > x)
     grays_hline(RAS_VAR_ x, y,
     cover *(ONE_PIXEL * 2), cur->x - x);
   }
   else
   {
    /* draw a gray span until the end of the clipping region */
    if (cover && x < ras.max_ex - ras.min_ex)
     grays_hline(RAS_VAR_ x, y,
     cover *(ONE_PIXEL * 2),
     ras.max_ex - x - ras.min_ex);
    cover = 0;
   }
///////////////////////////////////////////////////////////////////////////////////
   
> Could you send the exact content of the FT_Outline sent to the
> rasterizer so that I could try to trace the problem ??
 
Sorry I do not have the content, ( I got outline on the fly :))  ), simply 
scaled the 'e' (or any other char)   to very large size ,rotate it, and then 
encounter this problem . 

Many Thanks.


Walker.

    
    
----- Original Message ----- 
From: "David Turner" <address@hidden>
To: <address@hidden>
Sent: Tuesday, December 11, 2001 10:34 PM
Subject: Re: [Devel] Strange fill problem


> Hello Walker,
> 
> Walker a écrit :
> > 
> > hi:
> > 
> > When I scaled the "e" to large size, I got an error result (See attachment).
> > 
> > I can get the correct result if rotate "e" 's path or adjust path point.
> > 
> > Anyone know why this happen?
> >
> You seem to have it a pretty rare bug in the rasterizer.
> What version of FreeType are you using ?
> 
> Could you send the exact content of the FT_Outline sent to the
> rasterizer so that I could try to trace the problem ??
> 
> Regards,
> 
> - David
> 
> _______________________________________________
> Devel mailing list
> address@hidden
> http://www.freetype.org/mailman/listinfo/devel

reply via email to

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