After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 423105 - Faulty text-wrapping
Faulty text-wrapping
Status: RESOLVED WONTFIX
Product: xchat-gnome
Classification: Other
Component: general
HEAD
Other Linux
: Normal normal
: .30
Assigned To: xchat-gnome maintainers
xchat-gnome maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2007-03-26 21:53 UTC by Brian Pepple
Modified: 2019-02-23 02:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of faulty text wrapping (192.84 KB, image/png)
2007-03-26 21:55 UTC, Brian Pepple
Details

Description Brian Pepple 2007-03-26 21:53:43 UTC
When a line goes beyond the breadth of the text window, the last word (or couple
of words) get partially or completely hidden behind the right handside
scrollbar. Subsequent words continue on the next line.

Version-Release number of selected component (if applicable):
xchat-gnome 0.16

How reproducible:
Every time the length of a sentence is more than the breadth of the text window.
Both when the xchat-gnome window is maximized and unmaximized.

Steps to Reproduce:
a. Log into GNOME desktop, using your favourite language setting.

b. Run XChat-GNOME as:
   $ LANG=bn_IN.UTF-8 /usr/bin/xchat-gnome

c. Go to Preferences -> Setting, ie. the last entry on the second main menu
option in XChat-GNOME. Select the font to be used as either "Use system terminal
font", or select "Monospace" from the drop-down menu.

d. Now start typing a message in the text input box. The message can be in
English too. Make sure that the text is longer than the width of the window as
mentioned in the original bug-report.

e. One can notice that the message is not wrapped around properly (see
screenshots in the original report) at the right-hand edges of the channel
conversation window.

f. The problem is not present if some other font, say Bitstream Vera Sans Mono,
is selected keeping LANG=bn_IN.UTF-8.

This problem is not noticed for other values of LANG.
Comment 1 Brian Pepple 2007-03-26 21:55:22 UTC
Created attachment 85351 [details]
Screenshot of faulty text wrapping
Comment 2 Debarshi Ray 2007-04-10 19:47:01 UTC
Since I am the person who reported this first on Red Hat's bugzilla, I am willing to provide with any help you on this.
Comment 3 Debarshi Ray 2007-04-24 09:13:31 UTC
Has there been progress on this?
Comment 4 David Trowbridge 2007-09-13 01:37:51 UTC
This should hopefully be fixed in SVN now.  If you see it again, please reopen this bug.
Comment 5 Ritesh Khadgaray ( irc:ritz) 2009-10-29 11:20:09 UTC
reproducible .
Comment 6 Ritesh Khadgaray ( irc:ritz) 2010-03-24 12:46:52 UTC
Pushing this to next release, as I would like to make a release soon.
Comment 7 Takao Fujiwara 2010-04-21 05:58:52 UTC
I can reproduce the problem with git HEAD.

It seems there are several problems.
Especially find_next_wrap() runs backend_get_char_width() but checking one char is wrong with Pango.
e.g. "123" and "aa123" are used different fonts in the current pango implementation. numeric char is common script which uses non-latin font and ASCII alphabet is latin script which uses latin font.

    mbl = charlen (str);
    char_width = backend_get_text_width (xtext, orig_str, str + mbl - orig_str, 1) -
                 backend_get_text_width (xtext, orig_str, str - orig_str, 1);


Also backend_draw_text() get a font from run->item->analysis.font when pango_layout_set_text() is called but it would use the different font.
Since pango use the different font between all string and sub string.
Comment 8 André Klapper 2019-02-23 02:50:27 UTC
xchat-gnome is not under active development anymore.
Its codebase has been archived:
https://gitlab.gnome.org/Archive/xchat-gnome/commits/master

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather reactivate the project
to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the
responsibility for active development again.
You may want to switch to Hexchat (or another IRC client that suits you).