Bug 326

Summary: TextRenderer corruption with certain text
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 1   
Hardware: All   
OS: all   
URL: http://www.javagaming.org/forums/index.php?topic=15594.90
Type: DEFECT SCM Refs:
Workaround: ---
Attachments: Test case

Description Sven Gothel 2010-03-24 07:50:57 CET


---- Reported by kbr 2007-10-22 11:57:25 ----

The thread above and attached test case indicate a problem with the TextRenderer
where its output becomes corrupted after rendering certain text sequences
involving the ASCII letter '-' and some surrounding text.



---- Additional Comments From kbr 2007-10-22 12:02:56 ----

Created an attachment
Test case




---- Additional Comments From kbr 2007-10-25 14:51:00 ----

Another piece of text which breaks courtesy of Patrick Murris from the NASA
World Wind Java project:

Font.decode("Arial-BOLD-64") with a relatively short text:
"LA CLAPI\u00c8RE \nAlt: 1100-1700m \nGlissement de terrain majeur dans la haute
Tin\u00e9e, sur un flanc du Parc du Mercantour."




---- Additional Comments From kbr 2007-11-09 14:27:56 ----

Recent regression in the TextRenderer causing ArrayIndexOutOfBoundsException on
the attached test case:
http://www.javagaming.org/forums/index.php?topic=15594.90




---- Additional Comments From kbr 2007-11-09 14:28:59 ----

Fixed four issues:
 - Regression in new segmenting and punting code causing
   ArrayIndexOutOfBoundsException due to not resetting the glyph
   uploader during punt.
 - Issue in same code where length and total advance were not being
   reset properly.
 - Incorrect handling in glyph-by-glyph rendering when backing store
   was using NPOT texture and GL_ARB_texture_rectangle.
 - Failure to punt when glyph code was out of bounds.

Checked in two regression tests for these issues.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:50 EDT  ---

This bug was previously known as _bug_ 326 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=326
Imported an attachment (id=109)

The original submitter of attachment 109 [details] is unknown.
   Reassigning to the person who moved it here: sgothel@jausoft.com.