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
===