freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] [patch] fuller right margin in ftview


From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] [patch] fuller right margin in ftview
Date: Sun, 1 Jul 2012 21:58:11 -0400

On Wed, Jun 27, 2012 at 1:22 PM, Werner LEMBERG <address@hidden> wrote:
>
>> [...] the drawing functions ultimately inherit the error codes from
>> FT_Glyph_To_Bitmap currently.  Therefore it has to be something
>> different from those defined in fterrdef.h to distinguish.  It would
>> be good if freetype reserved an FT_Err_User, defined as -1 or 0xFF
>> perhaps, which is not yet taken.
>
> If at all, we had to reserve an error range, say, 0xF0-0xFF, since one
> single error code is hardly sufficient usually.
>
> However, right now a good enough solution is to define something by
> yourself, I think.

The attached patch returns the error code 0xFF when the margin is
crossed and leaves 3 pixels blank at the right margin.

Attachment: ftview-right-margin.patch
Description: Binary data


reply via email to

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