head 1.31; access; symbols; locks; strict; comment @# @; 1.31 date 2005.09.14.18.39.35; author cworth; state Exp; branches; next 1.30; commitid 6ee543286e674567; 1.30 date 2005.07.29.07.48.07; author behdad; state Exp; branches; next 1.29; commitid 284a42e9df0e4567; 1.29 date 2005.05.17.15.24.39; author cworth; state Exp; branches; next 1.28; commitid 22b4428a0cb74567; 1.28 date 2005.05.17.15.22.13; author cworth; state Exp; branches; next 1.27; commitid 214e428a0c254567; 1.27 date 2005.05.17.14.52.23; author cworth; state Exp; branches; next 1.26; commitid e64428a05274567; 1.26 date 2005.05.17.14.31.42; author cworth; state Exp; branches; next 1.25; commitid 2e0428a004e4567; 1.25 date 2005.04.02.04.20.39; author cworth; state Exp; branches; next 1.24; 1.24 date 2005.03.18.15.26.53; author cworth; state Exp; branches; next 1.23; 1.23 date 2005.02.28.18.50.46; author cworth; state Exp; branches; next 1.22; 1.22 date 2004.11.11.18.25.26; author pippin; state Exp; branches; next 1.21; 1.21 date 2004.11.04.02.52.06; author cworth; state Exp; branches; next 1.20; 1.20 date 2004.11.03.21.03.12; author cworth; state Exp; branches; next 1.19; 1.19 date 2004.10.25.15.35.21; author cworth; state Exp; branches; next 1.18; 1.18 date 2004.10.22.15.52.26; author cworth; state Exp; branches; next 1.17; 1.17 date 2004.10.22.15.08.23; author cworth; state Exp; branches; next 1.16; 1.16 date 2004.10.18.22.37.34; author cworth; state Exp; branches; next 1.15; 1.15 date 2004.10.18.21.11.44; author cworth; state Exp; branches; next 1.14; 1.14 date 2004.10.18.14.43.47; author cworth; state Exp; branches; next 1.13; 1.13 date 2004.09.10.17.55.39; author cworth; state Exp; branches; next 1.12; 1.12 date 2004.05.11.14.52.19; author pippin; state Exp; branches; next 1.11; 1.11 date 2004.04.29.05.38.57; author cworth; state Exp; branches; next 1.10; 1.10 date 2004.04.29.05.36.01; author cworth; state Exp; branches; next 1.9; 1.9 date 2004.04.29.05.28.31; author cworth; state Exp; branches; next 1.8; 1.8 date 2004.04.06.20.08.20; author davidr; state Exp; branches; next 1.7; 1.7 date 2004.03.13.11.57.33; author rworth; state Exp; branches; next 1.6; 1.6 date 2004.02.19.23.22.04; author dajobe; state Exp; branches; next 1.5; 1.5 date 2003.12.18.03.17.26; author cworth; state Exp; branches; next 1.4; 1.4 date 2003.12.16.15.23.36; author cworth; state Exp; branches; next 1.3; 1.3 date 2003.12.16.03.01.54; author cworth; state Exp; branches; next 1.2; 1.2 date 2003.12.16.02.34.12; author cworth; state Exp; branches; next 1.1; 1.1 date 2003.12.11.15.09.12; author cworth; state Exp; branches; next ; desc @@ 1.31 log @ 2005-09-14 Carl Worth * text.c (box_text): Update for change in cairo_show_text semantics in that it now moves the current point. @ text @2005-09-14 Carl Worth * text.c (box_text): Update for change in cairo_show_text semantics in that it now moves the current point. 2005-07-29 Behdad Esfahbod * bevels.c: * caps_joins.c: * hering.c: * outline.c: * snapping.c: * spiral.c: * splines_tolerance.c: * star_and_ring.c: * stars.c: * text-rotate.c: * text.c: Remove stale includes of write_png.h. 2005-05-17 Carl Worth * write_png.c: * write_png.h: Remove local copy of write_png code which cairo supplies quite well on its own. 2005-05-17 Carl Worth * text.c (main): Remove #warning since I figured out what I was doing wrong with cairo_set_font_matrix. 2005-05-17 Carl Worth * Makefile: * bevels.c: (set_hex_color), (main): * caps_joins.c: (main), (stroke_v_twice), (draw_caps_joins): * hering.c: (main), (draw_hering): * outline.c: (main), (create_gradient), (draw_outlines): * snapping.c: (snap_point_for_fill), (snap_point_for_stroke), (snap_line_width), (snap_path_for_fill), (snap_path_for_stroke), (draw_nested), (main): * spiral.c: (main), (draw_spiral): * splines_tolerance.c: (main), (draw_splines): * star_and_ring.c: (star_path), (fill_ring), (fill_star), (main): * stars.c: (main), (draw_stars): * text-rotate.c: (main): * text.c: (box_text), (box_glyphs), (main): Update all programs to match recent cairo API changes. 2005-04-01 Carl Worth * caps_joins.c: * hering.c: * outline.c: * spiral.c: * splines_tolerance.c: * stars.c: * text-rotate.c: * text.c: * write_png.c: * write_png.h: Convert file encodings to utf-8. 2005-03-18 Carl Worth * star_and_ring.c: Add example showing how to use CAIRO_OPERATOR_ADD to draw to interwoven objects without any seams. 2005-02-28 Carl Worth * Makefile (MYCFLAGS): Use canonical libpn12 name for pkgconfig rather than libpng. 2004-11-11 Øyvind Kolås * Makefile: removed read_png.c from Makefile, it's neither present in CVS repository nor used by examples, remove generated pngs when cleaning up. 2004-11-03 Carl Worth * snapping.c (snap_point_for_fill): Fix typo snapping y to x. (snap_line_width): Fix to maintain sign of width when clamping to maintain >= 1.0. Without this, a reflective transformation would cause the width to go negative and the line would disappear. 2004-10-25 Carl Worth * snapping.c (snap_point_for_fill, snap_point_for_stroke) (snap_line_width): Switch from integer truncation to floor() so that rounding works as desired with negative numbers. 2004-10-22 Carl Worth * snapping.c: Add demo showing how to do device-pixel-aligned graphics. Correct typo in comment. 2004-10-18 Carl Worth * bevels.c: Add bevel example showing lines of 1-pixel width. (draw_bevels): Add sample radio buttons to demonstrate that circles work as well as rectangles. (bevel_circle): Fix circular widgets to match style of squares. 2004-09-10 Carl Worth * Makefile (CFLAGS+): Fix typo. 2004-05-11 Øyvind Kolås * *.[ch] : replacing ct with cr 2004-04-28 Carl Worth * write_png.c (unpremultiply_data): Use memcpy rather than assignment to avoid problems with unaligned pointers on particular machines. (unpremultiply_data): Missed one. (unpremultiply_data): Take three. 2004-04-06 David Reveman * outline.c: Fix cairo_set_pattern. 2004-03-13 Richard Worth * write_png.c, write_png.h: style changes 2004-02-19 Dave Beckett * text.c, text-rotate.c: Remove FcFini call from newer fontconfig than I have here (2.2.1). May leak memory if valgrind checking. 2003-12-17 Carl Worth * Makefile (EXAMPLES): Add text-rotate. * text-rotate.c: New program demonstrating text rotation. 2003-12-16 Carl Worth * text.c (box_text): (box_glyphs): Add calls to cairo_text_path and cairo_glyph_path to demonstrate how to draw stroked (outlined) text. 2003-12-15 Carl Worth (box_glyphs): (box_text): Track changes in cairo_text_extents_t structure. 2003-12-15 Carl Worth * text.c: Add boxes to demonstrate use of cairo_text_extents and cairo_glyph_extents. Add several text examples to demonstrate behavior of extents under various transformations. 2003-12-11 Carl Worth * Makefile (LDFLAGS): Use pkg-config to find libpng. 2003-12-10 Carl Worth * write_png.c (unpremultiply_data): Fix to keep libpng happy on big-endian machines. @ 1.30 log @2005-07-29 Behdad Esfahbod = 1.0. Without this, a reflective transformation would cause the width to go negative and the line would disappear. @ text @d1 6 @ 1.20 log @ * snapping.c (snap_point_for_fill): Fix typo snapping y to x. @ text @d4 3 @ 1.19 log @ * snapping.c (snap_point_for_fill, snap_point_for_stroke) (snap_line_width): Switch from integer truncation to floor() so that rounding works as desired with negative numbers. @ text @d1 4 @ 1.18 log @ Correct typo in comment. @ text @d1 6 @ 1.17 log @ * snapping.c: Add demo showing how to do device-pixel-aligned graphics. @ text @d5 1 @ 1.16 log @ (bevel_circle): Fix circular widgets to match style of squares. @ text @d1 5 @ 1.15 log @ (draw_bevels): Add sample radio buttons to demonstrate that circles work as well as rectangles. @ text @d6 1 @ 1.14 log @ * bevels.c: Add bevel example showing lines of 1-pixel width. @ text @d4 2 @ 1.13 log @ * Makefile (CFLAGS+): Fix typo. @ text @d1 4 @ 1.12 log @global replacing of ct with cr @ text @d1 4 @ 1.11 log @ * write_png.c (unpremultiply_data): Use memcpy rather than assignment to avoid problems with unaligned pointers on particular machines. @ text @d1 3 @ 1.10 log @ * write_png.c (unpremultiply_data): Use memcpy rather than assignment to avoid problems with unaligned pointers on particular machines. @ text @d7 1 @ 1.9 log @ * write_png.c (unpremultiply_data): Use memcpy rather than assignment to avoid problems with unaligned pointers on particular machines. @ text @d6 1 @ 1.8 log @Fix cairo_set_pattern @ text @d1 6 @ 1.7 log @* write_png.c, write_png.h: style changes @ text @d1 4 @ 1.6 log @ * text.c, text-rotate.c: Remove FcFini call from newer fontconfig than I have here (2.2.1). May leak memory if valgrind checking. @ text @d1 4 @ 1.5 log @ * Makefile (EXAMPLES): Add text-rotate. * text-rotate.c: New program demonstrating text rotation. @ text @d1 5 @ 1.4 log @ * text.c (box_text): (box_glyphs): Add calls to cairo_text_path and cairo_glyph_path to demonstrate how to draw stroked (outlined) text. @ text @d1 6 @ 1.3 log @ (box_glyphs): (box_text): Track changes in cairo_text_extents_t structure. @ text @d1 6 @ 1.2 log @ * text.c: Add boxes to demonstrate use of cairo_text_extents and cairo_glyph_extents. Add several text examples to demonstrate behavior of extents under various transformations. @ text @d3 5 @ 1.1 log @ * Makefile (CFLAGS): Use pkg-config to find libpng. @ text @d1 6 @