[151794] trunk/dports/graphics/fntsample
mojca at macports.org
mojca at macports.org
Mon Aug 22 03:50:00 PDT 2016
Revision: 151794
https://trac.macports.org/changeset/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
Modified: trunk/dports/graphics/fntsample/Portfile
===================================================================
--- 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
===================================================================
--- 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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160822/85736262/attachment.html>
More information about the macports-changes
mailing list