public void drawString(String s, float x, float y, JustificationInfo info) { if (s.length() == 0) return; PdfContentByte cb = _currentPage; ensureFillColor(); AffineTransform at = (AffineTransform)getTransform().clone(); at.translate(x, y); AffineTransform inverse = normalizeMatrix(at); AffineTransform flipper = AffineTransform.getScaleInstance(1, -1); inverse.concatenate(flipper); inverse.scale(_dotsPerPoint, _dotsPerPoint); double[] mx = new double[6]; inverse.getMatrix(mx); cb.beginText(); cb.setFontAndSize(_font.getFontDescription().getFont(), _font.getSize2D() / _dotsPerPoint); cb.setTextMatrix((float)mx[0], (float)mx[1], (float)mx[2], (float)mx[3], (float)mx[4], (float)mx[5]); if (info == null) { cb.showText(s); } else { PdfTextArray array = makeJustificationArray(s, info); cb.showText(array); } cb.endText(); }
public void drawString(String s, float x, float y, JustificationInfo info) { if (s.length() == 0) return; PdfContentByte cb = _currentPage; ensureFillColor(); AffineTransform at = (AffineTransform)getTransform().clone(); at.translate(x, y); AffineTransform inverse = normalizeMatrix(at); AffineTransform flipper = AffineTransform.getScaleInstance(1, -1); inverse.concatenate(flipper); inverse.scale(_dotsPerPoint, _dotsPerPoint); double[] mx = new double[6]; inverse.getMatrix(mx); cb.beginText(); cb.setFontAndSize(_font.getFontDescription().getFont(), _font.getSize2D() / _dotsPerPoint); cb.setTextMatrix((float)mx[0], (float)mx[1], (float)mx[2], (float)mx[3], (float)mx[4], (float)mx[5]); if (info == null) { cb.showText(s); } else { PdfTextArray array = makeJustificationArray(s, info); cb.showText(array); } cb.endText(); }
return; PdfContentByte cb = _currentPage; ensureFillColor(); AffineTransform at = (AffineTransform) getTransform().clone(); at.translate(x, y);
return; PdfContentByte cb = _currentPage; ensureFillColor(); AffineTransform at = (AffineTransform) getTransform().clone(); at.translate(x, y);
return; PdfContentByte cb = _currentPage; ensureFillColor(); AffineTransform at = (AffineTransform) getTransform().clone(); at.translate(x, y);
ensureStrokeColor(); } else if (drawType == FILL) { ensureFillColor();
ensureStrokeColor(); } else if (drawType == FILL) { ensureFillColor();
ensureStrokeColor(); } else if (drawType==FILL) { ensureFillColor();
ensureStrokeColor(); } else if (drawType==FILL) { ensureFillColor();
ensureStrokeColor(); } else if (drawType == FILL) { ensureFillColor();