/** * This will set the missing width for the font. * * @param missingWidth The new missing width for the font. */ public void setMissingWidth(float missingWidth) { dic.setFloat(COSName.MISSING_WIDTH, missingWidth); }
/** * This will set the average width for the font. * * @param averageWidth The new average width for the font. */ public void setAverageWidth(float averageWidth) { dic.setFloat(COSName.AVG_WIDTH, averageWidth); }
/** * This will set the max width for the font. * * @param maxWidth The new max width for the font. */ public void setMaxWidth(float maxWidth) { dic.setFloat(COSName.MAX_WIDTH, maxWidth); }
/** * This will set the stem V for the font. * * @param stemV The new stem v for the font. */ public void setStemV(float stemV) { dic.setFloat(COSName.STEM_V, stemV); }
/** * This will set the stem H for the font. * * @param stemH The new stem h for the font. */ public void setStemH(float stemH) { dic.setFloat(COSName.STEM_H, stemH); }
/** * This will set the cap height for the font. * * @param capHeight The new cap height for the font. */ public void setCapHeight(float capHeight) { dic.setFloat(COSName.CAP_HEIGHT, capHeight); this.capHeight = capHeight; }
/** * This will set the x height for the font. * * @param xHeight The new x height for the font. */ public void setXHeight(float xHeight) { dic.setFloat(COSName.XHEIGHT, xHeight); this.xHeight = xHeight; }
/** * This will set the descent for the font. * * @param descent The new descent for the font. */ public void setDescent(float descent) { dic.setFloat(COSName.DESCENT, descent); }
/** * This will set the leading for the font. * * @param leading The new leading for the font. */ public void setLeading(float leading) { dic.setFloat(COSName.LEADING, leading); }
/** * This will set the ascent for the font. * * @param ascent The new ascent for the font. */ public void setAscent(float ascent) { dic.setFloat(COSName.ASCENT, ascent); }
/** * This will set the italic angle for the font. * * @param angle The new italic angle for the font. */ public void setItalicAngle(float angle) { dic.setFloat(COSName.ITALIC_ANGLE, angle); }
/** * Set the weight of the font. * * @param fontWeight The new weight of the font. */ public void setFontWeight(float fontWeight) { dic.setFloat(COSName.FONT_WEIGHT, fontWeight); }
/** * This is a convenience method that will convert the value to a COSFloat object. * * @param key The key to the object, * @param value The int value for the name. */ public void setFloat(String key, float value) { setFloat(COSName.getPDFName(key), value); }
/** * (Optional) The minimum required capability of the signature field seed value dictionary parser. * A value of 1 specifies that the parser shall be able to recognize all seed value dictionary * entries in a PDF 1.5 file. A value of 2 specifies that it shall be able to recognize all seed * value dictionary entries specified. * * @param minimumRequiredCapability is the minimum required capability of the signature field seed * value dictionary parser */ public void setV(float minimumRequiredCapability) { dictionary.setFloat(COSName.V, minimumRequiredCapability); }