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 15:57:55 -0700 (PDT)

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 



reply via email to

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