Package: gnome-u2ps Version: 0.0.4-4 Severity: wishlist Tags: patch Hi,
as of version 0.0.4, a hard-coded value is used for the font size. It would be nice, if this would be configurable. The attached patch adds a new command line option "--gpsize" for this purpose, which accepts a floating point value as argument. If would be nice if this patch could be forwarded upstream for inclusion and / or added to the Debian packaging. TIA, Sebastian -- Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/ Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
diff a/debian/u2ps.1 b/debian/u2ps.1 --- a/debian/u2ps.1 2010-02-17 21:48:45.000000000 +0100 +++ b/debian/u2ps.1 2010-02-17 22:02:02.000000000 +0100 @@ -41,6 +41,9 @@ executing the command \fBfc-list\fR, a good option if the default is not good is "Monospace") .TP +\fB\-\-gpsize\fR=\fISIZE\fR +Specify libgnomeprint font size (default: 12.0) +.TP \fB\-\-mail\fR Parse input file as mail .TP diff a/src/main.c b/src/main.c --- a/src/main.c 2010-02-17 21:48:46.000000000 +0100 +++ b/src/main.c 2010-02-17 22:00:13.000000000 +0100 @@ -42,6 +42,7 @@ char const *output_filename = NULL; char const *input_encoding = NULL; char const *familyname = NULL; /* Fallback set */ +gdouble fontsize = 12.0; char const *content_title = NULL; gboolean enable_arabic = FALSE; GSList* rtl_slist = NULL; @@ -61,6 +62,8 @@ N_("Encoding of the input"), N_("ENCODING") }, { "gpfamily", '\0', POPT_ARG_STRING, &familyname, 0, N_("Specify libgnomeprint font family name"), N_("FAMILYNAME") }, + { "gpsize", '\0', POPT_ARG_DOUBLE, &fontsize, 0, + N_("Specify libgnomeprint font size"), N_("SIZE") }, { "mail", '\0', POPT_ARG_NONE, &parse_mail, 0, N_("Parse input file as mail"), NULL }, { "title", 't', POPT_ARG_STRING, &content_title, 0, @@ -1104,7 +1107,7 @@ g_assert(GNOME_IS_FONT_FACE(face)); /* Text Font */ - font = gnome_font_face_get_font_default(face, 12); + font = gnome_font_face_get_font_default(face, fontsize); g_assert(font != NULL); gnome_print_setfont(context, font); /* Text Font Height */
signature.asc
Description: Digital signature