|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.pdf.BaseFont
com.lowagie.text.pdf.DocumentFont
com.lowagie.text.pdf.CMapAwareDocumentFont
public class CMapAwareDocumentFont
Implementation of DocumentFont used while parsing PDF streams.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.lowagie.text.pdf.BaseFont |
|---|
BaseFont.StreamFont |
| Field Summary | |
|---|---|
private CMap |
cmap
CMap instance. |
private PdfDictionary |
fontDic
The font dictionary. |
private 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 | |
|---|---|
private 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)
Gets the width of a char in normalized 1000 units. |
private void |
processToUni()
Does some processing if the font dictionary indicates that the font is in unicode. |
| Methods inherited from class com.lowagie.text.pdf.DocumentFont |
|---|
charExists, convertToBytes, convertToBytes, getAllNameEntries, getCharBBox, getFamilyFontName, getFontDescriptor, getFullFontName, getFullFontStream, getIndirectReference, getKerning, getPostscriptFontName, getRawCharBBox, getRawWidth, getWidth, hasKernPairs, setKerning, setPostscriptFontName, writeFont |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private PdfDictionary fontDic
private CMap cmap
private int spaceWidth
| Constructor Detail |
|---|
public CMapAwareDocumentFont(PRIndirectReference refFont)
refFont - the indirect reference to a font| Method Detail |
|---|
private int computeAverageWidth()
public int getWidth(int char1)
DocumentFontchar in normalized 1000 units.
getWidth in class DocumentFontchar1 - the unicode char to get the width of
DocumentFont.getWidth(int)private void processToUni()
public String encode(byte[] bytes,
int offset,
int len)
bytes - the bytes from a streamoffset - an offsetlen - a length
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||