Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
class: FontDetails [javadoc | source]
java.lang.Object
   com.lowagie.text.pdf.FontDetails
Each font in the document will have an instance of this class where the characters used will be represented.
Field Summary
 PdfIndirectReference indirectReference    The indirect reference to this font 
 PdfName fontName    The font name that appears in the document body stream 
 BaseFont baseFont    The font 
 TrueTypeFontUnicode ttu    The font if its an instance of TrueTypeFontUnicode 
 CJKFont cjkFont     
 byte[] shortTag    The array used with single byte encodings 
 HashMap longTag    The map used with double byte encodings. The key is Integer(glyph) and the value is int[]{glyph, width, Unicode code} 
 IntHashtable cjkTag     
 int fontType    The font type 
 boolean symbolic    true if the font is symbolic 
protected  boolean subset    Indicates if all the glyphs and widths for that particular encoding should be included in the document. 
Constructor:
 FontDetails(PdfName fontName,
    PdfIndirectReference indirectReference,
    BaseFont baseFont) 
    Each font used in a document has an instance of this class. This class stores the characters used in the document and other specifics unique to the current working document.
    Parameters:
    fontName - the font name
    indirectReference - the indirect reference to the font
    baseFont - the BaseFont
Method from com.lowagie.text.pdf.FontDetails Summary:
convertToBytes,   getBaseFont,   getFontName,   getIndirectReference,   isSubset,   setSubset,   writeFont
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.FontDetails Detail:
 byte[] convertToBytes(String text) 
    Converts the text into bytes to be placed in the document. The conversion is done according to the font and the encoding and the characters used are stored.
 BaseFont getBaseFont() 
    Gets the BaseFont of this font.
 PdfName getFontName() 
    Gets the font name as it appears in the document body.
 PdfIndirectReference getIndirectReference() 
    Gets the indirect reference to this font.
 public boolean isSubset() 
    Indicates if all the glyphs and widths for that particular encoding should be included in the document.
 public  void setSubset(boolean subset) 
    Indicates if all the glyphs and widths for that particular encoding should be included in the document. Set to false to include all.
  void writeFont(PdfWriter writer) 
    Writes the font definition to the document.