[151794] trunk/dports/graphics/fntsample
Ryan Schmidt
ryandesign at macports.org
Mon Aug 22 11:15:17 PDT 2016
> On Aug 22, 2016, at 5:50 AM, mojca at macports.org wrote:
>
> Revision
> 151794
> Author
> mojca at macports.org
> Date
> 2016-08-22 03:50:00 -0700 (Mon, 22 Aug 2016)
> Log Message
>
> fntsample: add a new variant +brightcolors and a patch to fix colors
> Modified Paths
>
> • trunk/dports/graphics/fntsample/Portfile
> Added Paths
>
> • trunk/dports/graphics/fntsample/files/
> • trunk/dports/graphics/fntsample/files/patch-color.diff
> Diff
>
> Modified: trunk/dports/graphics/fntsample/Portfile (151793 => 151794)
>
> --- trunk/dports/graphics/fntsample/Portfile 2016-08-22 10:25:22 UTC (rev 151793)
> +++ trunk/dports/graphics/fntsample/Portfile 2016-08-22 10:50:00 UTC (rev 151794)
>
> @@ -45,3 +45,9 @@
>
> post-patch {
>
> reinplace -W ${worksrcpath} "s|^#! /usr/bin/perl|#! ${prefix}/bin/perl${perl5.major}|g" pdfoutline.pl
>
> }
>
> +
> +# this patch is only available in MacPorts; not sure what exactly to ask upstream
> +# the original colors are "useless" for print
> +variant brightcolors description {Use brighter colors in tables (consume less ink)} {
> + patchfiles patch-color.diff
> +}
>
> Added: trunk/dports/graphics/fntsample/files/patch-color.diff (0 => 151794)
>
> --- trunk/dports/graphics/fntsample/files/patch-color.diff (rev 0)
> +++ trunk/dports/graphics/fntsample/files/patch-color.diff 2016-08-22 10:50:00 UTC (rev 151794)
>
> @@ -0,0 +1,25 @@
>
> +--- fntsample.c.orig
> ++++ fntsample.c
> +@@ -537,9 +537,11 @@ static void fill_empty_cell(cairo_t *cr, double x, double y, unsigned long charc
> + cairo_save(cr);
> + if (g_unichar_isdefined(charcode)) {
> + if (g_unichar_iscntrl(charcode))
> +- cairo_set_source_rgb(cr, 0.0, 0.0, 0.5);
> ++ cairo_set_source_rgb(cr, 0.85, 0.85, 1.0);
> + else
> +- cairo_set_source_rgb(cr, 0.5, 0.5, 0.5);
> ++ cairo_set_source_rgb(cr, 0.9, 0.9, 0.9);
> ++ } else {
> ++ cairo_set_source_rgb(cr, 0.5, 0.5, 0.5);
> + }
> + cairo_rectangle(cr, x, y, cell_width, cell_height);
> + cairo_fill(cr);
> +@@ -944,7 +944,7 @@ int main(int argc, char **argv)
> + exit(1);
> + }
> +
> +- cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);
> ++ cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);
> + draw_glyphs(cr, cr_font, face, fontname, other_face);
> + cairo_destroy(cr);
> + return 0;
The second hunk of the patch appears to be a no-op.
More information about the macports-dev
mailing list