]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Revert FOP-3078: Fix position of macron glyph
authorSimon Steiner <ssteiner@apache.org>
Thu, 16 Jun 2022 12:49:48 +0000 (12:49 +0000)
committerSimon Steiner <ssteiner@apache.org>
Thu, 16 Jun 2022 12:49:48 +0000 (12:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1901968 13f79535-47bb-0310-9956-ffa450edef68

fop-core/src/main/java/org/apache/fop/complexscripts/scripts/DefaultScriptProcessor.java
fop-core/src/test/java/org/apache/fop/complexscripts/scripts/DefaultScriptTestCase.java

index 11f20eaf3d53071205f3a6accfee3212e36c832c..0de1a2058c7566cac51d0d10f71a1a227a006625 100644 (file)
@@ -153,8 +153,7 @@ public class DefaultScriptProcessor extends ScriptProcessor {
 
     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;
     }
 
 }
index b1439a0ba374897e88c298cac090758f2272cff8..ba4ddf5549b7325f0e6e56a5793e105750eb4e9d 100644 (file)
@@ -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() {