freetype-devel
[Top][All Lists]
Advanced

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

Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts


From: Hin-Tak Leung
Subject: Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts)
Date: Tue, 23 May 2023 03:18:56 +0000 (UTC)

My librsvg2 is current - 2.56.0 :-(.

Found "-k czq 500" is okay, but "-k czq 400" fails 5 times on out of memory, and leaks in cairo_recording_surface_create from FT_Glyph_To_Bitmap, according to valgrind.
 "-k czq 380" is just not runnable (and valgrind warns of "set address range perms: large range" too). The out of memory happens between 477 and 478.

I am wondering also that because the arabic font means negative advance widths for most glyphs, and due to an over-sight, any glyphs other than the first few get those negative advance widths passed to cairo as widths :-(  , so the rsvg port code is doing some insanely large numbers from wrap around, for small negative bitmaps....

I have an Adobe latin svg font which works perfectly fine under ftview. (Though it has only a dozen glyphs, and nothing more exciting than "ABCDE...")

On Tuesday, 23 May 2023 at 08:58:28 GMT+8, Alexei Podtelezhnikov <apodtele@gmail.com> wrote:


Hin-Tak,

SVG rendering is handled by librsvg. If that buffer does not have correct dimensions set, you might have all kinds of crashes.  Therefore, try updating that library. You might have a faulty version. 

Alexei

reply via email to

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