if ((bcPrev == EN) || (bcNext == EN)) {
wca [ i ] = EN;
}
- } else if ((bc != BN) && (bc != ET)) {
+ } else if (bc != BN) {
bcPrev = bc;
}
}
al.add(igs.getAssociation(i));
}
gb.flip();
+ assert igs != null;
if (igs.compareGlyphs(gb) != 0) {
this.igs = new GlyphSequence(igs.getCharacters(), gb, al);
this.indexLast = gb.limit();
log.debug(tableTag + " lang sys table non-required feature count: " + nf);
}
// read (non-required) feature indices
- int[] fia = new int[nf];
List fl = new java.util.ArrayList();
for (int i = 0; i < nf; i++) {
int fi = in.readTTFUShort();
if (log.isDebugEnabled()) {
log.debug(tableTag + " lang sys table non-required feature index: " + fi);
}
- fia[i] = fi;
fl.add("f" + fi);
}
if (seLanguages == null) {
log.debug(tableTag + " feature table lookup list index count: " + nl);
}
// read lookup table indices
- int[] lia = new int[nl];
List lul = new java.util.ArrayList();
for (int i = 0; i < nl; i++) {
int li = in.readTTFUShort();
if (log.isDebugEnabled()) {
log.debug(tableTag + " feature table lookup index: " + li);
}
- lia[i] = li;
lul.add("lu" + li);
}
seFeatures.put("f" + featureIndex, new Object[] { featureTag, lul });
// read coverage table
seMapping = readCoverageTable(tableTag + " single substitution coverage", subtableOffset + co);
// read glyph substitutions
- int[] gsa = new int[ng];
for (int i = 0, n = ng; i < n; i++) {
int gs = in.readTTFUShort();
if (log.isDebugEnabled()) {
log.debug(tableTag + " single substitution glyph[" + i + "]: " + gs);
}
- gsa[i] = gs;
seEntries.add(gs);
}
}
sl.add(0x05F3);
}
if (hundreds > 0) {
- assert hundreds < 10;
if (hundreds < 5) {
sl.add(map [ 18 + (hundreds - 1) ]);
} else if (hundreds < 9) {
sl.add(0x05F4);
sl.add(map [ 18 + (hundreds - 9) ]);
}
+ assert hundreds < 10;
}
if (number == 15) {
sl.add(map [ 9 - 1]);
public void addAreas(PositionIterator posIter, LayoutContext context) {
// "Unwrap" the NonLeafPositions stored in posIter
- LinkedList positionList = new LinkedList();
- Position pos = null;
while (posIter.hasNext()) {
- pos = posIter.next();
- if (pos != null && pos.getPosition() != null) {
- positionList.add(pos.getPosition());
- }
+ posIter.next();
}
}
// if a break occurs the content width increases,
// otherwise nothing happens
addElementsForAHyphen(baseList, alignment, hyphIPD, widthIfNoBreakOccurs,
- mapping.breakOppAfter && mapping.isHyphenated);
+ mapping.breakOppAfter);
} else if (suppressibleLetterSpace) {
// the word fragment ends with a character that acts as a hyphen
// if a break occurs the width does not increase,
package org.apache.fop.pdf;
-import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public byte[] toByteString() {
- List<String> functionsStrings = new ArrayList<String>(function.getFunctions().size());
- for (PDFFunction f : pdfFunctions) {
- functionsStrings.add(f.referencePDF());
- }
SubFunctionRenderer subFunctionRenderer = new SubFunctionRenderer() {
public void outputFunction(StringBuilder out, int functionIndex) {
/** {@inheritDoc} */
public void endColumn(TableColumn tc) {
- if (bDefer) {
- return;
- }
}
/** {@inheritDoc} */
/** {@inheritDoc} */
public void endPageNumber(PageNumber pagenum) {
- if (bDefer) {
- return;
- }
}
/** {@inheritDoc} */
throw new IllegalArgumentException("Unsupported dither matrix: " + matrix);
}
if (doubleMatrix) {
- if (doubleMatrix && (matrix != DITHER_MATRIX_4X4)) {
+ if (matrix != DITHER_MATRIX_4X4) {
throw new IllegalArgumentException("doubleMatrix=true is only allowed for 4x4");
}
dither = new byte[bayer.length / 8 * 4];