- Remove patches merged and unnecessary anymore:
- paps-makefile.patch
- paps-formfeed.patch
- paps-0.6.6-encoding.patch
- paps-typo-font-scale.patch
- paps-0.6.6-segfault.patch
- paps-0.6.6-font-option.patch
- paps-0.6.6-lcctype.patch
- paps-0.6.8-shared.patch: Enable building shared library.
- paps-0.6.8-wordwrap.patch: Update a bit to get it working without an
wordwrap mode.
- Add paps-libs and paps-devel package.
- paps-cups.patch: Update.
- paps-cpilpi.patch: Update.
- Fix the wrong rendering with CPI option. (#237202)
- Fix the unnecessary rotation with the landscape option when paps is
running as CUPS filter. (#222137)
36 lines
1.7 KiB
Diff
36 lines
1.7 KiB
Diff
diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c
|
|
--- paps-0.6.8.orig/src/paps.c 2007-04-13 14:04:14.000000000 +0900
|
|
+++ paps-0.6.8/src/paps.c 2007-11-16 12:28:11.000000000 +0900
|
|
@@ -723,9 +723,12 @@ split_text_into_paragraphs (PangoContext
|
|
pango_layout_set_alignment (para->layout,
|
|
page_layout->pango_dir == PANGO_DIRECTION_LTR
|
|
? PANGO_ALIGN_LEFT : PANGO_ALIGN_RIGHT);
|
|
- pango_layout_set_wrap (para->layout, PANGO_WRAP_WORD_CHAR);
|
|
-
|
|
- pango_layout_set_width (para->layout, paint_width * PANGO_SCALE);
|
|
+ if (page_layout->do_wordwrap) {
|
|
+ pango_layout_set_wrap (para->layout, PANGO_WRAP_WORD_CHAR);
|
|
+ pango_layout_set_width (para->layout, paint_width * PANGO_SCALE);
|
|
+ } else {
|
|
+ pango_layout_set_width (para->layout, -1);
|
|
+ }
|
|
para->height = 0;
|
|
|
|
result = g_list_prepend (result, para);
|
|
@@ -754,9 +757,13 @@ split_text_into_paragraphs (PangoContext
|
|
pango_layout_set_alignment (para->layout,
|
|
page_layout->pango_dir == PANGO_DIRECTION_LTR
|
|
? PANGO_ALIGN_LEFT : PANGO_ALIGN_RIGHT);
|
|
- pango_layout_set_wrap (para->layout, PANGO_WRAP_WORD_CHAR);
|
|
+ if (page_layout->do_wordwrap) {
|
|
+ pango_layout_set_wrap (para->layout, PANGO_WRAP_WORD_CHAR);
|
|
+ pango_layout_set_width (para->layout, paint_width * PANGO_SCALE);
|
|
+ } else {
|
|
+ pango_layout_set_width (para->layout, -1);
|
|
+ }
|
|
|
|
- pango_layout_set_width (para->layout, paint_width * PANGO_SCALE);
|
|
para->height = 0;
|
|
|
|
last_para = next;
|