| java.lang.Object com.lowagie.text.pdf.BaseFont com.lowagie.text.pdf.DocumentFont
DocumentFont | public class DocumentFont extends BaseFont (Code) | | author: psoares |
charExists | public boolean charExists(char c)(Code) | | |
convertToBytes | byte[] convertToBytes(char char1)(Code) | | |
getCharBBox | public int[] getCharBBox(char c)(Code) | | |
getFamilyFontName | public String[][] getFamilyFontName()(Code) | | Gets the family name of the font. If it is a True Type font
each array element will have {Platform ID, Platform Encoding ID,
Language ID, font name}. The interpretation of this values can be
found in the Open Type specification, chapter 2, in the 'name' table.
For the other fonts the array has a single element with {"", "", "",
font name}.
the family name of the font |
getFontDescriptor | public float getFontDescriptor(int key, float fontSize)(Code) | | Gets the font parameter identified by key . Valid values
for key are ASCENT , CAPHEIGHT , DESCENT ,
ITALICANGLE , BBOXLLX , BBOXLLY , BBOXURX
and BBOXURY .
Parameters: key - the parameter to be extracted Parameters: fontSize - the font size in points the parameter in points |
getFullFontName | public String[][] getFullFontName()(Code) | | Gets the full name of the font. If it is a True Type font
each array element will have {Platform ID, Platform Encoding ID,
Language ID, font name}. The interpretation of this values can be
found in the Open Type specification, chapter 2, in the 'name' table.
For the other fonts the array has a single element with {"", "", "",
font name}.
the full name of the font |
getKerning | public int getKerning(char char1, char char2)(Code) | | Gets the kerning between two Unicode chars.
Parameters: char1 - the first char Parameters: char2 - the second char the kerning to be applied |
getPostscriptFontName | public String getPostscriptFontName()(Code) | | Gets the postscript font name.
the postscript font name |
getRawCharBBox | protected int[] getRawCharBBox(int c, String name)(Code) | | |
getRawWidth | int getRawWidth(int c, String name)(Code) | | Gets the width from the font according to the Unicode char c
or the name . If the name is null it's a symbolic font.
Parameters: c - the unicode char Parameters: name - the glyph name the width of the char |
getWidth | public int getWidth(char char1)(Code) | | Gets the width of a char in normalized 1000 units.
Parameters: char1 - the unicode char to get the width of the width in normalized 1000 units |
hasKernPairs | public boolean hasKernPairs()(Code) | | Checks if the font has any kerning pairs.
true if the font has any kerning pairs |
setKerning | public boolean setKerning(char char1, char char2, int kern)(Code) | | |
setPostscriptFontName | public void setPostscriptFontName(String name)(Code) | | Sets the font name that will appear in the pdf font dictionary.
It does nothing in this case as the font is already in the document.
Parameters: name - the new font name |
Methods inherited from com.lowagie.text.pdf.BaseFont | public void addSubsetRange(int[] range)(Code)(Java Doc) public boolean charExists(char c)(Code)(Java Doc) byte[] convertToBytes(String text)(Code)(Java Doc) byte[] convertToBytes(char char1)(Code)(Java Doc) public void correctArabicAdvance()(Code)(Java Doc) protected void createEncoding()(Code)(Java Doc) public static BaseFont createFont(String name, String encoding, boolean embedded) throws DocumentException, IOException(Code)(Java Doc) public static BaseFont createFont(String name, String encoding, boolean embedded, boolean cached, byte ttfAfm, byte pfb) throws DocumentException, IOException(Code)(Java Doc) public static BaseFont createFont(String name, String encoding, boolean embedded, boolean cached, byte ttfAfm, byte pfb, boolean noThrow) throws DocumentException, IOException(Code)(Java Doc) public static BaseFont createFont(PRIndirectReference fontRef)(Code)(Java Doc) public static String createSubsetPrefix()(Code)(Java Doc) public static String[] enumerateTTCNames(String ttcFile) throws DocumentException, IOException(Code)(Java Doc) public static String[] enumerateTTCNames(byte ttcArray) throws DocumentException, IOException(Code)(Java Doc) public static Object[] getAllFontNames(String name, String encoding, byte ttfAfm) throws DocumentException, IOException(Code)(Java Doc) public int getAscent(String text)(Code)(Java Doc) public float getAscentPoint(String text, float fontSize)(Code)(Java Doc) protected static String getBaseName(String name)(Code)(Java Doc) public int[] getCharBBox(char c)(Code)(Java Doc) public char getCidCode(char c)(Code)(Java Doc) public String[] getCodePagesSupported()(Code)(Java Doc) public int getDescent(String text)(Code)(Java Doc) public float getDescentPoint(String text, float fontSize)(Code)(Java Doc) public String[] getDifferences()(Code)(Java Doc) public static ArrayList getDocumentFonts(PdfReader reader)(Code)(Java Doc) public static ArrayList getDocumentFonts(PdfReader reader, int page)(Code)(Java Doc) public String getEncoding()(Code)(Java Doc) abstract public String[][] getFamilyFontName()(Code)(Java Doc) abstract public float getFontDescriptor(int key, float fontSize)(Code)(Java Doc) public int getFontType()(Code)(Java Doc) abstract public String[][] getFullFontName()(Code)(Java Doc) public static String[][] getFullFontName(String name, String encoding, byte ttfAfm) throws DocumentException, IOException(Code)(Java Doc) abstract public int getKerning(char char1, char char2)(Code)(Java Doc) abstract public String getPostscriptFontName()(Code)(Java Doc) abstract protected int[] getRawCharBBox(int c, String name)(Code)(Java Doc) abstract int getRawWidth(int c, String name)(Code)(Java Doc) public static InputStream getResourceStream(String key)(Code)(Java Doc) public static InputStream getResourceStream(String key, ClassLoader loader)(Code)(Java Doc) char getUnicodeDifferences(int index)(Code)(Java Doc) public char[] getUnicodeDifferences()(Code)(Java Doc) public char getUnicodeEquivalent(char c)(Code)(Java Doc) public int getWidth(char char1)(Code)(Java Doc) public int getWidth(String text)(Code)(Java Doc) public float getWidthPoint(String text, float fontSize)(Code)(Java Doc) public float getWidthPoint(char char1, float fontSize)(Code)(Java Doc) public float getWidthPointKerned(String text, float fontSize)(Code)(Java Doc) public int[] getWidths()(Code)(Java Doc) abstract public boolean hasKernPairs()(Code)(Java Doc) public boolean isDirectTextToByte()(Code)(Java Doc) public boolean isEmbedded()(Code)(Java Doc) public boolean isFontSpecific()(Code)(Java Doc) public boolean isForceWidthsOutput()(Code)(Java Doc) public boolean isSubset()(Code)(Java Doc) protected static String normalizeEncoding(String enc)(Code)(Java Doc) public boolean setCharAdvance(char c, int advance)(Code)(Java Doc) public void setDirectTextToByte(boolean directTextToByte)(Code)(Java Doc) public void setForceWidthsOutput(boolean forceWidthsOutput)(Code)(Java Doc) abstract public boolean setKerning(char char1, char char2, int kern)(Code)(Java Doc) abstract public void setPostscriptFontName(String name)(Code)(Java Doc) public void setSubset(boolean subset)(Code)(Java Doc) abstract void writeFont(PdfWriter writer, PdfIndirectReference ref, Object params) throws DocumentException, IOException(Code)(Java Doc)
|
|
|