You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2001/11/15 15:20:58 UTC
cvs commit: xml-batik/sources/org/apache/batik/gvt/renderer StrokingTextPainter.java
vhardy 01/11/15 06:20:58
Modified: sources/org/apache/batik/gvt/renderer
StrokingTextPainter.java
Log:
Applied Thomas's patch to fix i18n BE issue.
Revision Changes Path
1.23 +6 -3 xml-batik/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java
Index: StrokingTextPainter.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- StrokingTextPainter.java 2001/11/14 20:03:32 1.22
+++ StrokingTextPainter.java 2001/11/15 14:20:58 1.23
@@ -60,7 +60,7 @@
* @see org.apache.batik.gvt.text.GVTAttributedCharacterIterator
*
* @author <a href="bill.haneman@ireland.sun.com>Bill Haneman</a>
- * @version $Id: StrokingTextPainter.java,v 1.22 2001/11/14 20:03:32 deweese Exp $
+ * @version $Id: StrokingTextPainter.java,v 1.23 2001/11/15 14:20:58 vhardy Exp $
*/
public class StrokingTextPainter extends BasicTextPainter {
@@ -442,11 +442,12 @@
GVTFont defaultFont = null;;
int numSet=0;
int firstUnset=start;
+ boolean firstUnsetSet;
for (int i = 0; i < resolvedFontFamilies.size(); i++) {
// assign this font to all characters it can display if it has
// not already been assigned
int currentIndex = firstUnset;
- firstUnset = -1;
+ firstUnsetSet = false;
aci.setIndex(currentIndex);
GVTFontFamily ff;
@@ -465,8 +466,10 @@
}
if (displayUpToIndex <= currentIndex) {
- if (firstUnset == -1)
+ if (!firstUnsetSet) {
firstUnset = currentIndex;
+ firstUnsetSet = true;
+ }
// couldn't display the current char
currentIndex++;
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org