[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/29011] FreetypeGlyphVector.getGlyphPosition(int glyphIndex) sho

From: cam-gcc-bugzilla at aka dot mcc dot id dot au
Subject: [Bug awt/29011] FreetypeGlyphVector.getGlyphPosition(int glyphIndex) should not throw when glyphIndex == nGlyphs
Date: 11 Sep 2006 04:09:10 -0000

------- Comment #1 from cam-gcc-bugzilla at aka dot mcc dot id dot au  
2006-09-11 04:09 -------
Created an attachment (id=12219)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12219&action=view)
Patch to make getGlyphPosition work as advertised.

This patch makes the glyphTransforms array bigger by one and stores the
transform representing the position after the final glyph in it. 
getGlyphTransform now performs an explicit check that throws if the passed
glyphIndex is equal to nGlyphs.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]