1. 11 Sep, 2019 1 commit
  2. 02 Feb, 2013 1 commit
  3. 20 Jan, 2013 1 commit
  4. 21 Apr, 2012 1 commit
    • Torsten Schönfeld's avatar
      Auto-upgrade strings to utf8 · 20f7d8c3
      Torsten Schönfeld authored
      Whenever cairo expects utf8-encoded strings, automatically "upgrade" the
      user-supplied string to utf8.  This makes it unnecessary (but harmless)
      for users to call utf8::upgrade() on their strings.
      
      Note, however, that calling utf8::encode() will now yield doubly-encoded
      and thus broken strings.  Also, having utf8-encoded literals in your
      code without an accompanying "use utf8" line will also lead to double
      encoding.
      
      https://rt.cpan.org/Ticket/Display.html?id=73177
      20f7d8c3
  5. 20 Jan, 2012 2 commits
  6. 06 Jan, 2012 1 commit
  7. 15 Oct, 2011 1 commit
  8. 28 Aug, 2011 1 commit
  9. 21 Aug, 2011 1 commit
  10. 07 Aug, 2011 1 commit
  11. 01 May, 2011 3 commits
  12. 20 Jun, 2010 1 commit
  13. 18 May, 2010 2 commits
  14. 16 May, 2010 3 commits
  15. 28 Mar, 2009 2 commits
  16. 28 Dec, 2008 1 commit
  17. 05 Oct, 2008 1 commit
  18. 24 Feb, 2008 1 commit
  19. 10 Feb, 2008 1 commit
  20. 29 Dec, 2007 1 commit
  21. 24 Oct, 2007 1 commit
    • Torsten Schönfeld's avatar
      Cairo.pm Cairo.xs CairoFt.xs Makefile.PL cairo-perl.h cairo-perl.typemap · 2c7cf647
      Torsten Schönfeld authored
      	* Cairo.pm
      	* Cairo.xs
      	* CairoFt.xs
      	* Makefile.PL
      	* cairo-perl.h
      	* cairo-perl.typemap
      	* examples/freetype-font.pl
      	* t/CairoFt.t: Add support for part of cairo's FreeType
      	integration API.  Currently, that's just
      	Cairo::FtFontFace::create, which lets you create a cairo font face
      	from a FreeType font face.
      
      svn path=/trunk/; revision=118
      2c7cf647
  22. 30 Sep, 2007 1 commit
  23. 06 May, 2007 1 commit
  24. 17 Mar, 2007 1 commit
    • Torsten Schönfeld's avatar
      Cairo.xs Wrap cairo_get_scaled_font. · 6f2b5657
      Torsten Schönfeld authored
      	* Cairo.xs
      	* t/Cairo.t: Wrap cairo_get_scaled_font.
      
      	* CairoSurface.xs
      	* t/CairoSurface.t: Re-add the binding for cairo_surface_finish.
      	It was orignally removed because its effect can also be achieved
      	by destroying the surface or letting it go out of scope.  But
      	Oleksandr Alex Protasenko convinced me that it's still a good idea
      	to have it anyway, mainly for paginated surfaces like PDF and PS
      	which defer rendering as long as they can.  With $surf->finish you
      	can more clearly express what you're intending to do than with
      	$surf = undef.
      
      	* examples/png-streams.pl: Fix indention.
      
      svn path=/trunk/; revision=88
      6f2b5657
  25. 21 Jan, 2007 1 commit
  26. 18 Jan, 2007 1 commit
  27. 28 Dec, 2006 1 commit
  28. 09 Nov, 2006 1 commit
    • Torsten Schönfeld's avatar
      Export cairo_perl_alloc_temp privately. · 94862c6a
      Torsten Schönfeld authored
      	* Cairo.xs, cairo-perl-private.h: Export cairo_perl_alloc_temp
      	privately.
      
      	* Cairo.xs: Remove the DOUBLES_ macros and inline them.  They were
      	used only in one place.
      
      	* Cairo.xs, t/Cairo.t: Wrap cairo_get_dash.
      
      	* CairoPattern.xs, cairo-perl-private.h, t/CairoPattern.t: Wrap
      	cairo_pattern_get_rgba, cairo_pattern_get_surface,
      	cairo_pattern_get_color_stop_rgba, cairo_pattern_get_points, and
      	cairo_pattern_get_circles.
      
      	* Makefile.PL: Support new cairo_status_t values.
      
      svn path=/trunk/; revision=66
      94862c6a
  29. 10 Aug, 2006 1 commit
    • Torsten Schönfeld's avatar
      Make it possible to compile and run the bindings against cairo 1.0.x. Use · 7b2f495d
      Torsten Schönfeld authored
      	* Cairo.xs, CairoFont.xs, CairoPattern.xs, CairoSurface.xs,
      	MakeHelper.pm, Makefile.PL, cairo-perl-private.h, t/Cairo.t,
      	t/CairoFont.t, t/CairoPattern.t, t/CairoSurface.t: Make it
      	possible to compile and run the bindings against cairo 1.0.x.  Use
      	a package lookup table for patterns and surfaces to work around
      	the lack of type accessors.  Add version guards around things that
      	were introduced in 1.2.0.
      
      	* CairoSurface.xs: Use OUTLIST for
      	cairo_surface_get_device_offset.
      
      	* CairoPattern.xs, CairoSurface.xs, cairo-perl-private.h: Rename
      	cair_perl_set_isa to cairo_perl_set_isa.  Doh!
      
      	* t/CairoSurface.t: Explicitly clear the image surface on cairo
      	1.0.x before writing it out since 1.0.x doesn't do it for us.  Use
      	lexical surface variables to make sure they get destroyed before
      	execution ends which in turn makes sure all tests inside callbacks
      	are run before Test::More checks if reality matches the test plan.
      
      svn path=/trunk/; revision=43
      7b2f495d
  30. 15 Jul, 2006 1 commit
  31. 02 Jul, 2006 1 commit
    • Torsten Schönfeld's avatar
      Require cairo 1.2.0. Add CAIRO_FORMAT_RGB16_565. · 4ff68a5b
      Torsten Schönfeld authored
      	* Makefile.PL: Require cairo 1.2.0.  Add CAIRO_FORMAT_RGB16_565.
      
      	* Cairo.pm, CairoFont.xs: Cosmetical changes.
      
      	* Cairo.xs: Add Cairo::VERSION and Cairo::VERSION_ENCODE.
      
      	* t/CairoSurface.t: Shuffle a few tests around to avoid some
      	strange singularities.
      
      svn path=/trunk/; revision=37
      4ff68a5b
  32. 03 Jun, 2006 1 commit
    • Torsten Schönfeld's avatar
      Document Cairo::get_group_target, Cairo::new_sub_path, · 95a92918
      Torsten Schönfeld authored
      	* Cairo.pm: Document Cairo::get_group_target, Cairo::new_sub_path,
      	Cairo::Pattern::get_type, Cairo::set_scaled_font, Cairo::version,
      	and Cairo::version_string.
      
      	* t/Cairo.t, Cairo.xs: Allow Cairo::version[_string] to be called
      	as a function and as a class method.
      
      	* CairoPattern.xs, CairoSurface.xs, t/CairoSurface.t, Makefile.PL,
      	examples/simple.pl, examples/png/caps_joins.pl,
      	examples/png/hering.pl: Whitespace fixes.
      
      	* t/CairoSurface.t, CairoSurface.xs: Wrap
      	cairo_surface_get_content.
      
      	* MakeHelper.pm: Don't add a linebreak to croaks so perl prints
      	line information.
      
      	* Makefile.PL: Require cairo 1.1.7.
      
      	* examples/png/README, examples/png/bevels.pl,
      	examples/png/spline-pipeline.pl, examples/png/text-rotate.pl,
      	examples/png/text.pl: New example ports.
      
      svn path=/trunk/; revision=32
      95a92918
  33. 14 May, 2006 1 commit
    • Torsten Schönfeld's avatar
      Remove Cairo::Surface::finish; it's memory management related and not · 141fb457
      Torsten Schönfeld authored
      	* t/CairoSurface.t, CairoSurface.xs: Remove
      	Cairo::Surface::finish; it's memory management related and not
      	needed, as far as I can tell.  Scream if you used it.
      
      	* t/CairoSurface.t, CairoSurface.xs: Bind and test
      	cairo_surface_write_to_png_stream,
      	cairo_image_surface_create_from_png_stream,
      	cairo_pdf_surface_create_for_stream, and
      	cairo_ps_surface_create_for_stream.
      
      	* CairoSurface.xs: Don't leak cairo_surface_create_similar's
      	return value.
      
      	* cairo-perl-private.h: Remove CAIRO_PERL_UNUSED.
      
      	* cairo-perl-private.h, Cairo.xs, CairoFont.xs, CairoMatrix.xs,
      	CairoPattern.xs: Rename pcairo_copy_matrix to
      	cairo_perl_copy_matrix.
      
      	* TODO: Update.
      
      svn path=/trunk/; revision=31
      141fb457