diff options
author | Alexander Larsson <alexl@redhat.com> | 2001-02-05 19:33:28 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-02-05 19:33:28 +0000 |
commit | da18979679966822e231eebdf1c93b2fbdce4818 (patch) | |
tree | 6a9a140f7eef3639c91feddf361eb1c0d1d50488 | |
parent | eb23f124cfc4b476b1ace5550513b453ad924e7b (diff) | |
download | pango-da18979679966822e231eebdf1c93b2fbdce4818.tar.gz |
Remove bogus MIN when rendering freetype text. Also draw full underlines.
2001-02-05 Alexander Larsson <alexl@redhat.com>
* pango/pangoft2.c (pango_ft2_render,
pango_ft2_render_layout_line): Remove bogus MIN when rendering
freetype text. Also draw full underlines.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-0 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-2 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-4 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 6 | ||||
-rw-r--r-- | pango/pangoft2.c | 13 |
8 files changed, 46 insertions, 9 deletions
@@ -1,3 +1,9 @@ +2001-02-05 Alexander Larsson <alexl@redhat.com> + + * pango/pangoft2.c (pango_ft2_render, + pango_ft2_render_layout_line): Remove bogus MIN when rendering + freetype text. Also draw full underlines. + Sun Feb 4 07:48:47 2001 Tim Janik <timj@gtk.org> * pango/pango-attributes.c (pango_color_get_type): pass 0 as diff --git a/ChangeLog.pre-1-0 b/ChangeLog.pre-1-0 index b3b14aa8..188ea887 100644 --- a/ChangeLog.pre-1-0 +++ b/ChangeLog.pre-1-0 @@ -1,3 +1,9 @@ +2001-02-05 Alexander Larsson <alexl@redhat.com> + + * pango/pangoft2.c (pango_ft2_render, + pango_ft2_render_layout_line): Remove bogus MIN when rendering + freetype text. Also draw full underlines. + Sun Feb 4 07:48:47 2001 Tim Janik <timj@gtk.org> * pango/pango-attributes.c (pango_color_get_type): pass 0 as diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index b3b14aa8..188ea887 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,9 @@ +2001-02-05 Alexander Larsson <alexl@redhat.com> + + * pango/pangoft2.c (pango_ft2_render, + pango_ft2_render_layout_line): Remove bogus MIN when rendering + freetype text. Also draw full underlines. + Sun Feb 4 07:48:47 2001 Tim Janik <timj@gtk.org> * pango/pango-attributes.c (pango_color_get_type): pass 0 as diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2 index b3b14aa8..188ea887 100644 --- a/ChangeLog.pre-1-2 +++ b/ChangeLog.pre-1-2 @@ -1,3 +1,9 @@ +2001-02-05 Alexander Larsson <alexl@redhat.com> + + * pango/pangoft2.c (pango_ft2_render, + pango_ft2_render_layout_line): Remove bogus MIN when rendering + freetype text. Also draw full underlines. + Sun Feb 4 07:48:47 2001 Tim Janik <timj@gtk.org> * pango/pango-attributes.c (pango_color_get_type): pass 0 as diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index b3b14aa8..188ea887 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,9 @@ +2001-02-05 Alexander Larsson <alexl@redhat.com> + + * pango/pangoft2.c (pango_ft2_render, + pango_ft2_render_layout_line): Remove bogus MIN when rendering + freetype text. Also draw full underlines. + Sun Feb 4 07:48:47 2001 Tim Janik <timj@gtk.org> * pango/pango-attributes.c (pango_color_get_type): pass 0 as diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index b3b14aa8..188ea887 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,9 @@ +2001-02-05 Alexander Larsson <alexl@redhat.com> + + * pango/pangoft2.c (pango_ft2_render, + pango_ft2_render_layout_line): Remove bogus MIN when rendering + freetype text. Also draw full underlines. + Sun Feb 4 07:48:47 2001 Tim Janik <timj@gtk.org> * pango/pango-attributes.c (pango_color_get_type): pass 0 as diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index b3b14aa8..188ea887 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,9 @@ +2001-02-05 Alexander Larsson <alexl@redhat.com> + + * pango/pangoft2.c (pango_ft2_render, + pango_ft2_render_layout_line): Remove bogus MIN when rendering + freetype text. Also draw full underlines. + Sun Feb 4 07:48:47 2001 Tim Janik <timj@gtk.org> * pango/pango-attributes.c (pango_color_get_type): pass 0 as diff --git a/pango/pangoft2.c b/pango/pangoft2.c index f74a55fb..4268c24c 100644 --- a/pango/pangoft2.c +++ b/pango/pangoft2.c @@ -357,7 +357,7 @@ pango_ft2_render (FT_Bitmap *bitmap, q = face->glyph->bitmap.buffer + iy*face->glyph->bitmap.pitch; for (ix = x_start; ix < x_limit; ix++) { - *p = MIN (*p, 0xFF - *q); + *p = *q; q++; p++; } @@ -973,27 +973,22 @@ pango_ft2_render_layout_line (FT_Bitmap *bitmap, (y + 4) * bitmap->pitch + x + PANGO_PIXELS (x_off + ink_rect.x) - 1; - /* Don't drawn the underline through descenders */ for (ix = 0; ix < x_limit; ix++) - if (*p == 0xFF && - (ix == x_limit - 1 || p[1] == 0xFF)) - *p++ = 0; + *p++ = 0xff; /* Fall through */ case PANGO_UNDERLINE_SINGLE: p = bitmap->buffer + (y + 2) * bitmap->pitch + x + PANGO_PIXELS (x_off + ink_rect.x) - 1; for (ix = 0; ix < x_limit; ix++) - if (*p == 0xFF && - (ix == x_limit - 1 || p[1] == 0xFF)) - *p++ = 0; + *p++ = 0xff; break; case PANGO_UNDERLINE_LOW: p = bitmap->buffer + (y + PANGO_PIXELS (ink_rect.y + ink_rect.height)) * bitmap->pitch + x + PANGO_PIXELS (x_off + ink_rect.x) - 1; for (ix = 0; ix < PANGO_PIXELS (ink_rect.width); ix++) - *p++ = 0; + *p++ = 0xff; break; } |