[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: |
Wed, 24 May 2023 18:27:58 +0000 (UTC) |
On Wednesday, 24 May 2023, 05:49:00 BST, Werner LEMBERG <wl@gnu.org> wrote:
> > I finished adding the color toggle to ftgrid (trivial, just cut and
> > paste a few lines from ftview)
> Please submit a Merge Request!
Could we do it the old-fashioned way ("git format-patch" on one side, "git am"
on the other)? Don't know when I'd get my freedesktop gitlab registration
back... attached.
Do you want the other one below about large memory allocated for bitmaps? For
now this seems to do it (without breaking adobe-made/sourced svg fonts) , but
until we see more svg fonts, we aren't sure. I think we probably should put a
stop on insanely large bitmaps (e.g. doing 12000x15000 instead of 12x15)
anyway, elsewhere.
Hin-Tak
src/rsvg-port.c line 255-ish:
===
/* Scale factors from SVG coordinates to the needed output size. */
x_svg_to_out = (double)metrics.x_ppem / dimension_svg.width;
y_svg_to_out = (double)metrics.y_ppem / dimension_svg.height;
+ if ((out_has_viewbox != TRUE) &&
+ (((int)out_width.length == 1) && ((int)out_height.length == 1))) {
+ x_svg_to_out /= units_per_EM;
+ y_svg_to_out /= units_per_EM;
+ }
+
/*
* Create a cairo recording surface. This is done for two reasons.
* Firstly, it is required to get the bounding box of the final drawing
===
0001-ftgrid-Copy-toggles-for-color-and-color-layered-glyp.patch
Description: Text Data
- Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts), (continued)
- Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts), Hin-Tak Leung, 2023/05/23
- Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts), Werner LEMBERG, 2023/05/24
- Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts), Hin-Tak Leung, 2023/05/24
- Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts), Cosimo Lupo, 2023/05/24
- Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts), Hin-Tak Leung, 2023/05/24
- Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts), Cosimo Lupo, 2023/05/24
- Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts), Werner LEMBERG, 2023/05/24
- Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts), Hin-Tak Leung, 2023/05/24
- Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts), Hin-Tak Leung, 2023/05/24
- Two patches (Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts)), Hin-Tak Leung, 2023/05/25
- Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts),
Hin-Tak Leung <=
- Re: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts), Hin-Tak Leung, 2023/05/24
- Ftgrid color toggle patch (Fw: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts))), Hin-Tak Leung, 2023/05/25
- Re: Ftgrid color toggle patch (Fw: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts))), Werner LEMBERG, 2023/05/30
- Re: Ftgrid color toggle patch (Fw: ftview segfault on ArefRuqaaInk-Regular.ttf (one of google web fonts))), Hin-Tak Leung, 2023/05/30