[cairo-commit] 2 commits - ROADMAP src/cairo-pdf-surface.c

Carl Worth cworth at kemper.freedesktop.org
Tue May 23 13:57:15 PDT 2006


 ROADMAP                 |    2 +-
 src/cairo-pdf-surface.c |   10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
diff-tree a5a72676bd34ac6bfdf5e0bcfd3fb21fcbada673 (from e4476dda49b709875b8204567168752c15927480)
Author: Carl Worth <cworth at cworth.org>
Date:   Tue May 23 13:41:44 2006 -0700

    ROADMAP: Note that the cairo_set_line_width issue is resolved

diff --git a/ROADMAP b/ROADMAP
index 65a45db..6597376 100644
--- a/ROADMAP
+++ b/ROADMAP
@@ -64,7 +64,7 @@ We don't expect to release without these
 
  Bug fixes with API implications
 	   cairo_{ps,pdf}_surface_set_dpi have no effect (replace with cairo_surface_set_fallback_resolution)
-	   cairo_set_line_width should immediately use CTM (see line-width-scale test case)
+	✓ cairo_set_line_width semantics (that's not a bug, it's a feature)
 
  Bug fixes (For each XXXX, see: https://bugs.freedesktop.org/show_bug.cgi?id=XXXX )
      4630  Fonts too large when drawing to image surface while printing
diff-tree e4476dda49b709875b8204567168752c15927480 (from 59885c6a122f593b417cb47dbd676eeac0cd8f69)
Author: Carl Worth <cworth at cworth.org>
Date:   Tue May 23 13:41:00 2006 -0700

    PDF: Move dash operator before path construction operators.
    
    I don't recall anything about this in the PDF reference, (though I
    also didn't look specifically for it), but without this acroread
    is quite unhappy with cairo's PDF output when it includes dashing.

diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index 0c063c6..fa530a0 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -2191,6 +2191,11 @@ _cairo_pdf_surface_stroke (void			*abstr
     if (status)
 	return status;
 
+    status = _cairo_pdf_surface_emit_stroke_style (surface,
+						   style);
+    if (status)
+	return status;
+
     info.output = surface->output;
     info.ctm_inverse = ctm_inverse;
 
@@ -2207,11 +2212,6 @@ _cairo_pdf_surface_stroke (void			*abstr
 				 ctm->xx, ctm->yx, ctm->xy, ctm->yy,
 				 ctm->x0, ctm->y0);
 
-    status = _cairo_pdf_surface_emit_stroke_style (surface,
-						   style);
-    if (status)
-	return status;
-
     _cairo_output_stream_printf (surface->output, "S Q\r\n");
 
     return status;


More information about the cairo-commit mailing list