GNOME Bugzilla – Bug 757392
text tool in 2.8 crops top of characters when using some fonts
Last modified: 2018-05-24 15:52:23 UTC
I created a .xcf last year in GIMP 2.6, with some text using the font 'SF Movie Poster', and it all worked fine. Built a new computer, transferred my files, installed GIMP 2.8, and tried to edit my .xcf... and found that 2.8 chops the top off all the uppercase characters. It's still leaving space in the text box, but rendering the upper few rows of pixels as transparent. I've also tried creating a new .xcf, and found it has the same problem. Everything works fine if I use a different font, but I need to use SF Movie Poster as that's already established as the project's signature typeface. Apologies if I've missed anything important from this report - never had any significant problems with GIMP before so it's my first time doing this =]
Can you attach a small example image, and the font please (If the font is freely available).
Created attachment 314546 [details] affected font: SF Movie Poster Bold There are 8 separate TTF files in the font family, and all show the same problem in GIMP 2.8; this is the specific one I want to use.
Created attachment 314547 [details] Sample GIMP image showing font problem Sample image shows the lowercase words 'the' and 'show' rendering correctly, while the uppercase word 'MURKUM' has its characters cropped at the top.
Could this be the same as bug 612561 ?
(In reply to Michael Natterer from comment #4) > Could this be the same as bug 612561 ? This happens also on linux and it is not only a GIMP problem. I can reproduce it with gtk3-demo selecting Pango->Font Features clicking on the font chooser button choosing the attached font at a size of 36 All first letters are truncated, particularly G in Grumpy and T in twelve
So it can be in pango, fontconfig, freetype... Any clue where it is? This bug clearly doesn't belong here :)
(In reply to Michael Natterer from comment #6) > So it can be in pango, fontconfig, freetype... Any clue where it > is? This bug clearly doesn't belong here :) I'd say it is a duplicate of this cairo bug https://bugs.freedesktop.org/show_bug.cgi?id=89080 perhaps paired with an unusual font, it seems capital letters are higher than font size, two lines of text overlap. this cairo patch fixes the issue: diff --git a/src/cairo-composite-rectangles.c b/src/cairo-composite-rectangles.c index bc6e1f3..0e1e8cf 100644 --- a/src/cairo-composite-rectangles.c +++ b/src/cairo-composite-rectangles.c @@ -438,7 +438,7 @@ _cairo_composite_rectangles_init_for_glyphs (cairo_composite_rectangles_t *exten glyphs, num_glyphs, &extents->mask)) { - if (! _cairo_rectangle_intersect (&extents->bounded, &extents->mask)) + if (! _cairo_rectangle_intersects (&extents->bounded, &extents->mask)) return CAIRO_INT_STATUS_NOTHING_TO_DO; }
*** Bug 777881 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/795.