Author: ssteiner
Date: Thu Jun 16 12:49:48 2022
New Revision: 1901968

URL: http://svn.apache.org/viewvc?rev=1901968&view=rev
Log:
Revert FOP-3078: Fix position of macron glyph

Modified:
    
xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/complexscripts/scripts/DefaultScriptProcessor.java
    
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/complexscripts/scripts/DefaultScriptTestCase.java

Modified: 
xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/complexscripts/scripts/DefaultScriptProcessor.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/complexscripts/scripts/DefaultScriptProcessor.java?rev=1901968&r1=1901967&r2=1901968&view=diff
==============================================================================
--- 
xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/complexscripts/scripts/DefaultScriptProcessor.java
 (original)
+++ 
xmlgraphics/fop/trunk/fop-core/src/main/java/org/apache/fop/complexscripts/scripts/DefaultScriptProcessor.java
 Thu Jun 16 12:49:48 2022
@@ -153,8 +153,7 @@ public class DefaultScriptProcessor exte
 
     protected boolean isReorderedMark(GlyphDefinitionTable gdef, int[] glyphs, 
int[] unscaledWidths, int index, int[] pa) {
         pa = (pa != null) ? pa : new int[1];
-        int paindex = Math.min(pa.length - 1, index);
-        return gdef.isGlyphClass(glyphs[index], 
GlyphDefinitionTable.GLYPH_CLASS_MARK) && pa[paindex] != 0;
+        return gdef.isGlyphClass(glyphs[index], 
GlyphDefinitionTable.GLYPH_CLASS_MARK) && pa[0] != 0;
     }
 
 }

Modified: 
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/complexscripts/scripts/DefaultScriptTestCase.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/complexscripts/scripts/DefaultScriptTestCase.java?rev=1901968&r1=1901967&r2=1901968&view=diff
==============================================================================
--- 
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/complexscripts/scripts/DefaultScriptTestCase.java
 (original)
+++ 
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/complexscripts/scripts/DefaultScriptTestCase.java
 Thu Jun 16 12:49:48 2022
@@ -58,7 +58,7 @@ public class DefaultScriptTestCase {
         int[][] gpa = new int[2][2];
         gpa[1][1] = 1;
         String actual = getFont().reorderCombiningMarks(in, gpa, 
OTFScript.DEFAULT, null, null).toString();
-        Assert.assertEquals(actual.charAt(0), 803);
+        Assert.assertEquals(actual.charAt(0), 57344);
     }
 
     private MultiByteFont getFont() {



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-h...@xmlgraphics.apache.org

Reply via email to