GNOME Bugzilla – Bug 311846
Text rendering issues in CVS HEAD
Last modified: 2009-08-15 18:40:50 UTC
Please describe the problem: Anjuta has a major text rendering issue in the editor. It's impossible to type something as the scrollbar and the text cursor keep on moving right and left arbitrarily. It's also not possible to view an already created file as the text gets mangles when you scroll up and down. Most probably this is a Scintilla and Pango CVS HEAD issue. The scintilla bug tracker has no such bug filed as of this report. I am attaching a screenshot to demonstrate the bug. Steps to reproduce: 1. Open any file in Anjuta 2. Scroll up and down a bit Actual results: The text is garbled Expected results: The text should be rendered normally Does this happen every time? Yes Other information: This bug is most probably related to Scintilla and Pango 2.8
Created attachment 49873 [details] The screenshot demonstrates the rendering bug.
> Other information: > This bug is most probably related to Scintilla and Pango 2.8 ^^^^^^^^^^^^ It's Pango 1.8 not 2.8 ... a typo!
*** Bug 312326 has been marked as a duplicate of this bug. ***
*** Bug 312051 has been marked as a duplicate of this bug. ***
*** Bug 312863 has been marked as a duplicate of this bug. ***
*** Bug 312882 has been marked as a duplicate of this bug. ***
Reopening the bug until a concrete resolution is reached in the pango bugreport.
*** This bug has been marked as a duplicate of 312075 ***
I managed to get 1.2.3 usable again (though the text rendering is not as good as it was) by dropping in a lot of replacement files from the latest (1.6.5) scintilla, with some consequential changes, as follows: REPLACEMENTS: all the files in /scintilla, EXCEPT KeyWords.cxx test-scintilla.cxx (this means that a lot of the new Lex*.cxx do not get built) /scintilla/include Converter.h KeyWords.h Platform.h PropSet.h SciLexer.h Scintilla.h Scintilla.iface ScintillaWidget.h SString.h CONSEQUENTIALS: --- aneditor-original.cxx 2004-03-31 14:52:44.000000000 +1000 +++ aneditor.cxx 2005-08-10 09:26:53.000000000 +1000 @@ -556,8 +556,10 @@ int lineEnd = SendEditor(SCI_GETLINEENDPOSITION, line); int len = lineEnd - lineStart + 1; - char *text_buffer = SString::StringAllocate (len); +// char *text_buffer = SString::StringAllocate (len); + char *text_buffer = SContainer::StringAllocate (len); GetRange(wEditor, lineStart, lineEnd, text_buffer); text_buffer[len] = '\0'; - text.attach(text_buffer, len); +// text.attach(text_buffer, len); + text = text_buffer; } @@ -1160,9 +1162,11 @@ int doclen = LengthDocument(); int end = (doclen - pos >= radius ? pos + radius : doclen); - char *chunk = SString::StringAllocate(2 * radius); +// char *chunk = SString::StringAllocate(2 * radius); + char *chunk = SContainer::StringAllocate(2 * radius); GetRange(start, end, chunk, false); chunk[2 * radius] = '\0'; SString region; - region.attach(chunk); +// region.attach(chunk); + region = chunk; return FindWordInRegion(buffer, maxlength, region, pos - start); } THESE ARE UNRELATED WARNING-FIXES: --- anjuta-original.c 2005-04-24 23:27:50.000000000 +1000 +++ anjuta.c 2005-08-09 21:08:36.000000000 +1000 @@ -582,9 +582,10 @@ gchar *fn; TextEditor *te; - guint *explorer_height; +// guint *explorer_height; + guint explorer_height; - g_return_val_if_fail (fname, NULL); + g_return_val_if_fail (fname != NULL, 0); fn = anjuta_get_full_filename (fname); - g_return_val_if_fail (fname != NULL, NULL); +// g_return_val_if_fail (fname != NULL, NULL); te = app->explorer_view; @@ -621,5 +622,5 @@ and locat to to top of the explorer view */ scintilla_send_message (SCINTILLA (te->widgets.editor), SCI_GOTOLINE, - linenum_text_editor_to_scintilla (lineno)+ explorer_height - 1, 0); + (linenum_text_editor_to_scintilla (lineno) + explorer_height - 1), 0); scintilla_send_message (SCINTILLA (te->widgets.editor), SCI_GOTOLINE, linenum_text_editor_to_scintilla (lineno), 0);
*** Bug 313064 has been marked as a duplicate of this bug. ***
*** Bug 322508 has been marked as a duplicate of this bug. ***
I have the same problem when upgrading to pango-1.8.2. When I de-installed pango-1.8.2 and re-installed the older version (pango-1.8.1) the display problem disappears. I am using precompiled binaries from the FreeRockGnome project for both.
*** Bug 330360 has been marked as a duplicate of this bug. ***
hey i have the same problem but i have pango-1.10.1 what should i do? i have already tried reinstalling.
Closing all fixed bugs. Sorry for the mass update :( ...