diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-11-30 04:29:58 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-11-30 04:29:58 +0000 |
commit | a8e3d34ea91d80b5032ae0029cdcd7e97f83da7f (patch) | |
tree | 97d0dfb5c0017e44c1b596da1ef954d12a24f863 /examples/cairotwisted.c | |
parent | f802d542d6c1ab729cabd90a9c72891f1c2c8ee8 (diff) | |
download | pango-a8e3d34ea91d80b5032ae0029cdcd7e97f83da7f.tar.gz |
Bug 485536 – underline_position can be zero
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
Diffstat (limited to 'examples/cairotwisted.c')
-rw-r--r-- | examples/cairotwisted.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/examples/cairotwisted.c b/examples/cairotwisted.c index 180cd447..47d1e3d9 100644 --- a/examples/cairotwisted.c +++ b/examples/cairotwisted.c @@ -1,5 +1,13 @@ -/* example to use pangocairo to render text projected on a path */ -/* Written by Behdad Esfahbod, 2006. Not copyrighted, in public domain. */ +/* Example code to show how to use pangocairo to render text + * projected on a path. + * + * + * Written by Behdad Esfahbod, 2006..2007 + * + * Permission to use, copy, modify, distribute, and sell this example + * for any purpose is hereby granted without fee. + * It is provided "as is" without express or implied warranty. + */ #include <math.h> #include <stdlib.h> |