summaryrefslogtreecommitdiff
path: root/examples/cairotwisted.c
Commit message (Collapse)AuthorAgeFilesLines
* cairotwisted: Fix another compiler warningexample-cflagsMatthias Clasen2022-06-101-3/+3
|
* cairotwisted: Fix a compiler warningMatthias Clasen2022-06-101-0/+1
|
* Replace fallthrough comments with G_GNUC_FALLTHROUGHTimm Bäder2020-04-141-2/+2
|
* examples: Initialize variablesEmmanuele Bassi2017-05-191-3/+3
| | | | Avoid a compiler warning for potentially uninitialized variables.
* Fix cairotwisted curve_length()Behdad Esfahbod2014-02-111-1/+1
|
* [cairotwisted] Plug couple other leaksBehdad Esfahbod2009-03-301-0/+3
|
* [cairotwisted] Plug leakBehdad Esfahbod2009-03-301-1/+5
|
* Handle close_path correctly.Behdad Esfahbod2008-11-261-6/+12
| | | | | | | | | 2008-11-26 Behdad Esfahbod <behdad@gnome.org> * examples/cairotwisted.c (parametrize_path), (point_on_path): Handle close_path correctly. svn path=/trunk/; revision=2745
* Optimize double math.Behdad Esfahbod2007-12-061-46/+70
| | | | | | | | | 2007-12-05 Behdad Esfahbod <behdad@gnome.org> * examples/cairotwisted.c (point_on_path): Optimize double math. svn path=/trunk/; revision=2517
* Add some more comments to document the math involved.Behdad Esfahbod2007-12-031-4/+21
| | | | | | | | | | 2007-12-03 Behdad Esfahbod <behdad@gnome.org> * examples/cairotwisted.c: Add some more comments to document the math involved. svn path=/trunk/; revision=2510
* Document cairotwisted example.Behdad Esfahbod2007-11-301-123/+165
| | | | | | | | | | | 2007-11-30 Behdad Esfahbod <behdad@gnome.org> * examples/cairotwisted.c (two_points_distance), (curve_length), (parametrize_path), (point_on_path), (draw_twisted), (main): Document cairotwisted example. svn path=/trunk/; revision=2509
* Bug 485536 – underline_position can be zeroBehdad Esfahbod2007-11-301-2/+10
| | | | | | | | | | | | | | | | | 2007-11-29 Behdad Esfahbod <behdad@gnome.org> Bug 485536 – underline_position can be zero * pango/pango-utils.c (pango_cairo_quantize_line_geometry): Document that returned position may be zero. * pango/pangocairo-win32font.c (pango_cairo_win32_font_create_metrics_for_context): * pango/pangofc-font.c (get_face_metrics): Handle case of underline_position==0 after rounding. svn path=/trunk/; revision=2506
* Implement bezier curve length function that flattens the curve and sum theBehdad Esfahbod2007-10-201-7/+69
| | | | | | | | | | | 2007-10-20 Behdad Esfahbod <behdad@gnome.org> * examples/cairotwisted.c (curve_length): Implement bezier curve length function that flattens the curve and sum the length of straight lines approximating it. svn path=/trunk/; revision=2451
* Put cairotwisted in public domainPANGO_1_16_5Behdad Esfahbod2007-07-261-0/+1
| | | | svn path=/trunk/; revision=2379
* New APIBehdad Esfahbod2007-05-041-1/+2
| | | | | | | | | | | | | | | | | | | | | 2007-05-04 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo.h: * pango/pangocairo-context.c: * pango/pangocairo-render.c: New API PangoCairoShapeRendererFunc and pango_cairo_context_[sg]et_shape_renderer() * docs/pango-sections.txt, docs/tmpl/pangocairo.sgml: Document new * API. * examples/Makefile.am, examples/cairoshape.c: New example to show off new API/feature. svn path=/trunk/; revision=2261
* *.c, *.h: Replace preceding sequences of 8 spaces with tabs.Behdad Esfahbod2007-01-161-13/+13
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Replace preceding sequences of 8 spaces with tabs. svn path=/trunk/; revision=2165
* *.c, *.h: Drop trailing whitespace.Behdad Esfahbod2007-01-161-4/+4
| | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Drop trailing whitespace. svn path=/trunk/; revision=2163
* Improve text-on-path example.Behdad Esfahbod2007-01-161-24/+75
| | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * examples/cairotwisted.c (point_on_path), (draw_text), (draw_twisted), (draw_dream), (draw_wow), (main): Improve text-on-path example. svn path=/trunk/; revision=2156
* Use pango_layout(_iter)?_get_line_readonly() instead ofBehdad Esfahbod2007-01-161-1/+4
| | | | | | | | | | | | | | | | 2007-01-16 Behdad Esfahbod <behdad@gnome.org> * examples/cairotwisted.c (draw_text): * pango/pangocairo-win32font.c (max_glyph_width): * pango/pangofc-font.c (max_glyph_width): * pango/pangowin32.c (max_glyph_width), (pango_win32_render_layout): * pango/pangox.c (pango_x_render_layout): Use pango_layout(_iter)?_get_line_readonly() instead of pango_layout(_iter)?_get_line(). svn path=/trunk/; revision=2146
* A simple text-on-path example using pangocairo.Behdad Esfahbod2006-09-081-0/+402
2006-09-08 Behdad Esfahbod <behdad@gnome.org> * examples/cairotwisted.c: A simple text-on-path example using pangocairo. * examples/Makefile.am: Update.