*/
public abstract class GlyphPositioningSubtable extends GlyphSubtable implements GlyphPositioning {
- private static final GlyphPositioningState state = new GlyphPositioningState();
+ private static final GlyphPositioningState state = new GlyphPositioningState(); // CSOK: ConstantName
/**
* Instantiate a <code>GlyphPositioningSubtable</code>.
*/
public abstract class GlyphSubstitutionSubtable extends GlyphSubtable implements GlyphSubstitution {
- private static final GlyphSubstitutionState state = new GlyphSubstitutionState();
+ private static final GlyphSubstitutionState state = new GlyphSubstitutionState(); // CSOK: ConstantName
/**
* Instantiate a <code>GlyphSubstitutionSubtable</code>.
// CSOFF: InnerAssignmentCheck
// CSOFF: LineLengthCheck
+// CSOFF: NoWhitespaceAfterCheck
// CSOFF: ParameterNumberCheck
+// CSOFF: SimplifyBooleanReturnCheck
/**
* <p>Abstract script processor base class for which an implementation of the substitution and positioning methods
//Adjust viewport if not explicit
if (ipd == -1) {
ipd = constrainExtent(cwidth,
- props.getInlineProgressionDimension(), (foundNonAuto) ?
- props.getContentWidth() : new DefaultLength());
+ props.getInlineProgressionDimension(), (foundNonAuto)
+ ? props.getContentWidth() : new DefaultLength());
}
if (bpd == -1) {
bpd = constrainExtent(cheight,
- props.getBlockProgressionDimension(), (foundNonAuto) ?
- props.getContentHeight() : new DefaultLength());
+ props.getBlockProgressionDimension(), (foundNonAuto)
+ ? props.getContentHeight() : new DefaultLength());
}
this.clip = false;
*/
public static final void toUnicodeHex(char c, StringBuffer sb) {
for (int i = 0; i < 4; ++i) {
- sb.append(DIGITS[(c >> (12-4*i)) & 0x0F]);
+ sb.append(DIGITS[(c >> (12 - 4 * i)) & 0x0F]);
}
}
sb.append('/');
sb.append(fontName);
sb.append(' ');
- PDFNumber.doubleOut(fontSize,6,sb);
+ PDFNumber.doubleOut(fontSize, 6, sb);
sb.append(" Tf\n");
write(sb);
this.startText = useMultiByte ? "<" : "(";
import org.apache.batik.gvt.font.GVTGlyphVector;
import org.apache.batik.gvt.text.TextPaintInfo;
import org.apache.batik.gvt.text.TextSpanLayout;
+
+import org.apache.xmlgraphics.java2d.ps.PSGraphics2D;
+import org.apache.xmlgraphics.ps.PSGenerator;
+
import org.apache.fop.fonts.Font;
import org.apache.fop.fonts.FontInfo;
import org.apache.fop.fonts.FontMetrics;
import org.apache.fop.svg.NativeTextPainter;
import org.apache.fop.util.CharUtilities;
import org.apache.fop.util.HexEncoder;
-import org.apache.xmlgraphics.java2d.ps.PSGraphics2D;
-import org.apache.xmlgraphics.ps.PSGenerator;
/**
* Renders the attributed character iterator of a {@link org.apache.batik.gvt.TextNode TextNode}.
documents. Example: the fix of marks layering will be such a case when it's done.
-->
<release version="FOP Trunk" date="TBD">
+ <action context="Code" dev="GA" type="fix" fixes-bug="FOP-2192">
+ Fix checkstyle and findbugs warnings.
+ </action>
<action context="Renderers" dev="GA" type="fix" fixes-bug="FOP-2191">
Cache matched lookups, assembled lookup spec uses; reduce glyph processing state allocation.
</action>