freetype
[Top][All Lists]
Advanced

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

Re: [ft] Determining pixel dimensions for bitmap


From: Marco Wertz
Subject: Re: [ft] Determining pixel dimensions for bitmap
Date: Fri, 7 Nov 2014 22:43:35 +0100

> Thanks.  There is a fundamental problem in your code: You are calling
> `FT_Outline_Translate' with non-integer offset values, but you don't
> recompute the bbox after this operation to get correct bitmap
> dimensions.  It depends on your application whether non-integer offset
> values are useful or not.
> 
> See attached code that fixes this.  If you execute it, you get much
> less cases with a zero row or column.  An example is angle 29, and the
> attached image shows the reason (with thick lines indicating pixel
> borders): The covered area is to small to cause a non-zero gray value.

Thanks a lot for your time to look into this. Everything seems to be working
fine now.

Marco



reply via email to

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