FontFamily fontFamily = getFontFamily(fontFamilyName); FontDescription descr = new FontDescription(font); try { TrueTypeUtil.populateDescription(path, font, descr); FontDescription descr = new FontDescription(font);
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(); }
FontDescription description = (FontDescription)i.next(); if (description.getStyle() == style) { candidates.add(description);
FontFamily fontFamily = getFontFamily(fontFamilyName); FontDescription descr = new FontDescription(font); try { TrueTypeUtil.populateDescription(path, font, descr); FontDescription descr = new FontDescription(font);
FontFamily fontFamily = getFontFamily(fontFamilyName); FontDescription descr = new FontDescription(font); try { TrueTypeUtil.populateDescription(path, font, descr); FontDescription descr = new FontDescription(font);
FontFamily fontFamily = getFontFamily(fontFamilyName); FontDescription descr = new FontDescription(font); try { TrueTypeUtil.populateDescription(path, font, descr); FontDescription descr = new FontDescription(font);
FontDescription desc = _font.getFontDescription(); float fontSize = _font.getSize2D() / _dotsPerPoint; cb.setFontAndSize(desc.getFont(), fontSize); float b = (float) mx[1]; float c = (float) mx[2]; if (fontSpec != null) { int need = ITextFontResolver.convertWeightToInt(fontSpec.fontWeight); int have = desc.getWeight(); ensureStrokeColor(); if ((fontSpec.fontStyle == IdentValue.ITALIC) && (desc.getStyle() != IdentValue.ITALIC) && (desc.getStyle() != IdentValue.OBLIQUE)) { b = 0f; c = 0.21256f;
FontDescription desc = _font.getFontDescription(); float fontSize = _font.getSize2D() / _dotsPerPoint; cb.setFontAndSize(desc.getFont(), fontSize); float b = (float) mx[1]; float c = (float) mx[2]; if (fontSpec != null) { int need = ITextFontResolver.convertWeightToInt(fontSpec.fontWeight); int have = desc.getWeight(); if (need > have) { cb.setTextRenderingMode(PdfContentByte.TEXT_RENDER_MODE_FILL_STROKE); ensureStrokeColor(); if ((fontSpec.fontStyle == IdentValue.ITALIC) && (desc.getStyle() != IdentValue.ITALIC) && (desc.getStyle() != IdentValue.OBLIQUE)) { b = 0f; c = 0.21256f;
FontFamily fontFamily = getFontFamily(fontFamilyNames[i]); FontDescription descr = new FontDescription(font); try { TrueTypeUtil.populateDescription(uri, afmttf, font, descr); descr.setFromFontFace(true); descr.setWeight(convertWeightToInt(fontWeightOverride)); descr.setStyle(fontStyleOverride); FontFamily fontFamily = getFontFamily(fontFamilyName); FontDescription descr = new FontDescription(font); descr.setFromFontFace(true);
FontDescription desc = _font.getFontDescription(); float fontSize = _font.getSize2D() / _dotsPerPoint; cb.setFontAndSize(desc.getFont(), fontSize); float b = (float) mx[1]; float c = (float) mx[2]; if (fontSpec != null) { int need = ITextFontResolver.convertWeightToInt(fontSpec.fontWeight); int have = desc.getWeight(); ensureStrokeColor(); if ((fontSpec.fontStyle == IdentValue.ITALIC) && (desc.getStyle() != IdentValue.ITALIC) && (desc.getStyle() != IdentValue.OBLIQUE)) { b = 0f; c = 0.21256f;
FontFamily fontFamily = getFontFamily(fontFamilyNames[i]); FontDescription descr = new FontDescription(font); try { TrueTypeUtil.populateDescription(uri, afmttf, font, descr); descr.setFromFontFace(true); descr.setWeight(convertWeightToInt(fontWeightOverride)); descr.setStyle(fontStyleOverride); FontFamily fontFamily = getFontFamily(fontFamilyName); FontDescription descr = new FontDescription(font); descr.setFromFontFace(true);
FontFamily fontFamily = getFontFamily(fontFamilyNames[i]); FontDescription descr = new FontDescription(font); try { TrueTypeUtil.populateDescription(uri, afmttf, font, descr); descr.setFromFontFace(true); descr.setWeight(convertWeightToInt(fontWeightOverride)); descr.setStyle(fontStyleOverride); FontFamily fontFamily = getFontFamily(fontFamilyName); FontDescription descr = new FontDescription(font); descr.setFromFontFace(true);
FontFamily fontFamily = getFontFamily(fontFamilyNames[i]); FontDescription descr = new FontDescription(font); try { TrueTypeUtil.populateDescription(uri, afmttf, font, descr); descr.setFromFontFace(true); FontFamily fontFamily = getFontFamily(fontFamilyName); FontDescription descr = new FontDescription(font); descr.setFromFontFace(true);
for (int i = 0; i < matches.length; i++) { FontDescription descr = matches[i]; if (descr.getWeight() == desiredWeight) { return descr; for (offset = 0; offset < matches.length; offset++) { descr = matches[offset]; if (descr.getWeight() > desiredWeight) { break; if (offset > 0 && descr.getWeight() > desiredWeight) { return matches[offset-1]; } else { for (offset = matches.length - 1; offset >= 0; offset--) { descr = matches[offset]; if (descr.getWeight() < desiredWeight) { break; if (offset != matches.length - 1 && descr.getWeight() < desiredWeight) { return matches[offset+1]; } else {
for (int i = 0; i < matches.length; i++) { FontDescription descr = matches[i]; if (descr.getWeight() == desiredWeight) { return descr; for (offset = 0; offset < matches.length; offset++) { descr = matches[offset]; if (descr.getWeight() > desiredWeight) { break; if (offset > 0 && descr.getWeight() > desiredWeight) { return matches[offset-1]; } else { for (offset = matches.length - 1; offset >= 0; offset--) { descr = matches[offset]; if (descr.getWeight() < desiredWeight) { break; if (offset != matches.length - 1 && descr.getWeight() < desiredWeight) { return matches[offset+1]; } else {
for (int i = 0; i < matches.length; i++) { FontDescription descr = matches[i]; if (descr.getWeight() == desiredWeight) { return descr; for (offset = 0; offset < matches.length; offset++) { descr = matches[offset]; if (descr.getWeight() > desiredWeight) { break; if (offset > 0 && descr.getWeight() > desiredWeight) { return matches[offset-1]; } else { for (offset = matches.length - 1; offset >= 0; offset--) { descr = matches[offset]; if (descr.getWeight() < desiredWeight) { break; if (offset != matches.length - 1 && descr.getWeight() < desiredWeight) { return matches[offset+1]; } else {
for (int i = 0; i < matches.length; i++) { FontDescription descr = matches[i]; if (descr.getWeight() == desiredWeight) { return descr; for (offset = 0; offset < matches.length; offset++) { descr = matches[offset]; if (descr.getWeight() > desiredWeight) { break; if (offset > 0 && descr.getWeight() > desiredWeight) { return matches[offset-1]; } else { for (offset = matches.length - 1; offset >= 0; offset--) { descr = matches[offset]; if (descr.getWeight() < desiredWeight) { break; if (offset != matches.length - 1 && descr.getWeight() < desiredWeight) { return matches[offset+1]; } else {
for (int i = 0; i < matches.length; i++) { FontDescription descr = matches[i]; if (descr.getWeight() == desiredWeight) { return descr; for (offset = 0; offset < matches.length; offset++) { descr = matches[offset]; if (descr.getWeight() > desiredWeight) { break; if (offset > 0 && descr.getWeight() > desiredWeight) { return matches[offset-1]; } else { for (offset = matches.length - 1; offset >= 0; offset--) { descr = matches[offset]; if (descr.getWeight() < desiredWeight) { break; if (offset != matches.length - 1 && descr.getWeight() < desiredWeight) { return matches[offset+1]; } else {
FontFamily fontFamily = getFontFamily(fontFamilyName); FontDescription descr = new FontDescription(font); try { TrueTypeUtil.populateDescription(path, font, descr); FontFamily fontFamily = getFontFamily(fontFamilyName); FontDescription descr = new FontDescription(font);
FontFamily fontFamily = getFontFamily(fontFamilyName); FontDescription descr = new FontDescription(font); try { TrueTypeUtil.populateDescription(uri, afmttf, font, descr); descr.setFromFontFace(true); FontFamily fontFamily = getFontFamily(fontFamilyName); FontDescription descr = new FontDescription(font); descr.setFromFontFace(true);