diff options
author | Paul de Vrieze <pauldv@gentoo.org> | 2009-01-09 20:40:16 +0000 |
---|---|---|
committer | Paul de Vrieze <pauldv@gentoo.org> | 2009-01-09 20:40:16 +0000 |
commit | e90a3c2db408b6afbfa1d910725569f3a02689e5 (patch) | |
tree | 7bffb257bdc7bbcad7d3fb1c2c50414044bbce5f /media-gfx/inkscape/files | |
parent | Add computer modern fonts (diff) | |
download | pauldv-e90a3c2db408b6afbfa1d910725569f3a02689e5.tar.gz pauldv-e90a3c2db408b6afbfa1d910725569f3a02689e5.tar.bz2 pauldv-e90a3c2db408b6afbfa1d910725569f3a02689e5.zip |
Add option to set the resolution for filter rendering from the command line, and increase the defaults to 150dpi
svn path=/trunk/overlay/; revision=81
Diffstat (limited to 'media-gfx/inkscape/files')
-rw-r--r-- | media-gfx/inkscape/files/inkscape-0.47-export-dpi.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/media-gfx/inkscape/files/inkscape-0.47-export-dpi.patch b/media-gfx/inkscape/files/inkscape-0.47-export-dpi.patch new file mode 100644 index 0000000..8997261 --- /dev/null +++ b/media-gfx/inkscape/files/inkscape-0.47-export-dpi.patch @@ -0,0 +1,56 @@ +Index: src/extension/internal/cairo-renderer-pdf-out.cpp +=================================================================== +--- src/extension/internal/cairo-renderer-pdf-out.cpp (revision 20479) ++++ src/extension/internal/cairo-renderer-pdf-out.cpp (working copy) +@@ -153,7 +153,7 @@ + g_warning("Parameter <blurToBitmap> might not exist"); + } + +- int new_bitmapResolution = 72; ++ int new_bitmapResolution = 150; + try { + new_bitmapResolution = mod->get_param_int("resolution"); + } +Index: src/extension/internal/cairo-ps-out.cpp +=================================================================== +--- src/extension/internal/cairo-ps-out.cpp (revision 20479) ++++ src/extension/internal/cairo-ps-out.cpp (working copy) +@@ -151,7 +151,7 @@ + new_blurToBitmap = mod->get_param_bool("blurToBitmap"); + } catch(...) {} + +- int new_bitmapResolution = 72; ++ int new_bitmapResolution = 150; + try { + new_bitmapResolution = mod->get_param_int("resolution"); + } catch(...) {} +@@ -215,7 +215,7 @@ + new_blurToBitmap = mod->get_param_bool("blurToBitmap"); + } catch(...) {} + +- int new_bitmapResolution = 72; ++ int new_bitmapResolution = 150; + try { + new_bitmapResolution = mod->get_param_int("resolution"); + } catch(...) {} +Index: src/main.cpp +=================================================================== +--- src/main.cpp (revision 20479) ++++ src/main.cpp (working copy) +@@ -1398,6 +1398,16 @@ + (*i)->set_param_bool("blurToBitmap", TRUE); + } + ++ if (sp_export_dpi) { ++ int dpi = atoi(sp_export_dpi); ++ if ((dpi < 1) || (dpi > 10000)) { ++ g_warning("DPI value %s out of range [1 - 10000]. Nothing exported.", sp_export_dpi); ++ return; ++ } ++ g_print("DPI: %d\n", dpi); ++ (*i)->set_param_int("resolution", dpi); ++ } ++ + (*i)->save(doc, uri); + } + |