com.lowagie.text.pdf
public class CMapAwareDocumentFont extends DocumentFont
Since: 2.1.4
Field Summary | |
---|---|
CMap | cmap CMap instance. |
PdfDictionary | fontDic The font dictionary. |
int | spaceWidth the width of a space for this font, in normalized 1000 point units |
Constructor Summary | |
---|---|
CMapAwareDocumentFont(PRIndirectReference refFont)
Creates an instance of a CMapAwareFont based on an indirect reference to a font. |
Method Summary | |
---|---|
int | computeAverageWidth()
For all widths of all glyphs, compute the average width in normalized 1000 point units.
|
String | encode(byte[] bytes, int offset, int len)
Encodes bytes to a String. |
int | getWidth(int char1) |
void | processToUni()
Does some processing if the font dictionary indicates that the font is in unicode. |
Parameters: refFont the indirect reference to a font
Returns: the average width of all non-zero width glyphs in the font
Parameters: bytes the bytes from a stream offset an offset len a length
Returns: a String encoded taking into account if the bytes are in unicode or not.
Since: 2.1.5 Override to allow special handling for fonts that don't specify width of space character
See Also: DocumentFont