freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] italic font rendering clipped


From: Danny
Subject: Re: [Devel] italic font rendering clipped
Date: Tue, 5 Oct 2004 16:03:30 -0700 (PDT)

Looking again I noticed the top right of your Z is
also clipped.  However I still think it has to do with
the way you handle the size of the generated bitmap. 
Even without kerning factored in, italic letters may
extend longer than the distance you are told to skip
before the start of the next letter because there is
overlap.

--- Danny <address@hidden> wrote:

> You are probably writing one letter directly after
> the
> other and in doing so you are clipping off the edge
> of
> the other letter.  Sometimes letters overlap, while
> they don't touch per say, their bounding boxes do,
> this happens a lot with italic letters.
> 
> My guess is that you are treating blank space in the
> bitmap as if it should be white no matter what, when
> in reality this blank space should only be
> transparent.  You are overwriting the top right of
> the
> lower-case d and m letters with blank space from the
> next character.  Try putting just one character per
> line and I bet you will see they are all complete.
> 
> To fix this will you have to use the bitmaps as more
> of an alpha map, blank the area you are going to
> write
> to, and then when drawing out or copying over the
> letters, only copy over the pixels that are not
> blank.
>  This may seem like a lot of work but there is most
> likely a simpler solution depending on what graphic
> APIs you are working with.
> 
> --- Osho GG <address@hidden> wrote:
> 
> > Hi,
> > 
> > I am using freetype 2.1.9 and I am observing that
> > some of the
> > characters in the italic font renditions are
> > "clipped" at the right
> > upper corner. I have attached a screenshot that
> > shows this. It is
> > particularly noticeable with lower-case d and m
> > characters.
> > 
> > Any idea what could be wrong? 
> > 
> > thanks,
> > Osho
> > 
> 
> > ATTACHMENT part 2 image/png
> name=italic-problem.png
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
> _______________________________________________
> Devel mailing list
> address@hidden
> http://www.freetype.org/mailman/listinfo/devel
> 



                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com



reply via email to

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