freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] FT_Render_Glyph(...) errors for high pixel-per-em (ppem)


From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] FT_Render_Glyph(...) errors for high pixel-per-em (ppem) values
Date: Fri, 20 Oct 2017 21:30:58 -0400

On Fri, Oct 20, 2017 at 11:17 AM, Colin Fahey <address@hidden> wrote:

> However, for ppem values of 1127 ppem and higher, FT_Render_Glyph(...)
> *FAILS* (with error code "1"

The error likely comes from this line
https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/src/smooth/ftgrays.c#n1816
and is not a true FT_Err_Cannot_Open_Resource.

> upper-case "T" in Courier Bold, and "emdash" in Times Italic),

Thank you for your report. Do you mind testing the following patch?

diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index e84e38d8..30af42d9 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -582,8 +582,8 @@ typedef ptrdiff_t  FT_PtrDist;
     if ( ex < ras.min_ex )
       ex = ras.min_ex - 1;

-    /* record the current one if it is valid */
-    if ( !ras.invalid )
+    /* record the current one if it is valid and not empty */
+    if ( !ras.invalid && ( ras.area || ras.cover ) )
       gray_record_cell( RAS_VAR );

     ras.area  = 0;



reply via email to

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