aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningTable.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningTable.java')
-rw-r--r--src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningTable.java24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningTable.java b/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningTable.java
index f8ac4e504..01f78d2f2 100644
--- a/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningTable.java
+++ b/src/java/org/apache/fop/complexscripts/fonts/GlyphPositioningTable.java
@@ -258,7 +258,8 @@ public class GlyphPositioningTable extends GlyphTable {
}
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
- int gi = ps.getGlyph(), ci;
+ int gi = ps.getGlyph();
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) < 0 ) {
return false;
} else {
@@ -396,7 +397,8 @@ public class GlyphPositioningTable extends GlyphTable {
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int gi = ps.getGlyph(0), ci;
+ int gi = ps.getGlyph(0);
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) >= 0 ) {
int[] counts = ps.getGlyphsAvailable ( 0 );
int nga = counts[0];
@@ -587,7 +589,8 @@ public class GlyphPositioningTable extends GlyphTable {
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int gi = ps.getGlyph(0), ci;
+ int gi = ps.getGlyph(0);
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) >= 0 ) {
int[] counts = ps.getGlyphsAvailable ( 0 );
int nga = counts[0];
@@ -703,7 +706,8 @@ public class GlyphPositioningTable extends GlyphTable {
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int giMark = ps.getGlyph(), ciMark;
+ int giMark = ps.getGlyph();
+ int ciMark;
if ( ( ciMark = getCoverageIndex ( giMark ) ) >= 0 ) {
MarkAnchor ma = getMarkAnchor ( ciMark, giMark );
if ( ma != null ) {
@@ -846,7 +850,8 @@ public class GlyphPositioningTable extends GlyphTable {
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int giMark = ps.getGlyph(), ciMark;
+ int giMark = ps.getGlyph();
+ int ciMark;
if ( ( ciMark = getCoverageIndex ( giMark ) ) >= 0 ) {
MarkAnchor ma = getMarkAnchor ( ciMark, giMark );
int mxc = getMaxComponentCount();
@@ -1004,7 +1009,8 @@ public class GlyphPositioningTable extends GlyphTable {
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int giMark1 = ps.getGlyph(), ciMark1;
+ int giMark1 = ps.getGlyph();
+ int ciMark1;
if ( ( ciMark1 = getCoverageIndex ( giMark1 ) ) >= 0 ) {
MarkAnchor ma = getMark1Anchor ( ciMark1, giMark1 );
if ( ma != null ) {
@@ -1134,7 +1140,8 @@ public class GlyphPositioningTable extends GlyphTable {
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int gi = ps.getGlyph(), ci;
+ int gi = ps.getGlyph();
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) >= 0 ) {
int[] rv = new int[1];
RuleLookup[] la = getLookups ( ci, gi, ps, rv );
@@ -1460,7 +1467,8 @@ public class GlyphPositioningTable extends GlyphTable {
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int gi = ps.getGlyph(), ci;
+ int gi = ps.getGlyph();
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) >= 0 ) {
int[] rv = new int[1];
RuleLookup[] la = getLookups ( ci, gi, ps, rv );