| java.lang.Object com.lowagie.text.pdf.BaseFont com.lowagie.text.pdf.TrueTypeFont com.lowagie.text.pdf.TrueTypeFontUnicode
TrueTypeFontUnicode | class TrueTypeFontUnicode extends TrueTypeFont implements Comparator(Code) | | Represents a True Type font with Unicode encoding. All the character
in the font can be used directly by using the encoding Identity-H or
Identity-V. This is the only way to represent some character sets such
as Thai.
author: Paulo Soares (psoares@consiste.pt) |
Field Summary | |
boolean | vertical true if the encoding is vertical. |
vertical | boolean vertical(Code) | | true if the encoding is vertical.
|
TrueTypeFontUnicode | TrueTypeFontUnicode(String ttFile, String enc, boolean emb, byte ttfAfm) throws DocumentException, IOException(Code) | | Creates a new TrueType font addressed by Unicode characters. The font
will always be embedded.
Parameters: ttFile - the location of the font on file. The file must end in '.ttf'.The modifiers after the name are ignored. Parameters: enc - the encoding to be applied to this font Parameters: emb - true if the font is to be embedded in the PDF Parameters: ttfAfm - the font as a byte array throws: DocumentException - the font is invalid throws: IOException - the font file could not be read |
charExists | public boolean charExists(char c)(Code) | | Checks if a character exists in this font.
Parameters: c - the character to check true if the character has a glyph,false otherwise |
compare | public int compare(Object o1, Object o2)(Code) | | The method used to sort the metrics array.
Parameters: o1 - the first element Parameters: o2 - the second element the comparisation |
convertToBytes | byte[] convertToBytes(String text)(Code) | | A forbidden operation. Will throw a null pointer exception.
Parameters: text - the text always null |
convertToBytes | byte[] convertToBytes(char char1)(Code) | | |
getCharBBox | public int[] getCharBBox(char c)(Code) | | |
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 |
getWidth | public int getWidth(String text)(Code) | | Gets the width of a String in normalized 1000 units.
Parameters: text - the String to get the witdth of the width in normalized 1000 units |
setCharAdvance | public boolean setCharAdvance(char c, int advance)(Code) | | Sets the character advance.
Parameters: c - the character Parameters: advance - the character advance normalized to 1000 units true if the advance was set,false otherwise |
toHex | static String toHex(int n)(Code) | | Gets an hex string in the format "<HHHH>".
Parameters: n - the number the hex string |
Methods inherited from com.lowagie.text.pdf.TrueTypeFont | protected void addRangeUni(HashMap longTag, boolean includeMetrics, boolean subsetp)(Code)(Java Doc) void checkCff()(Code)(Java Doc) protected static int[] compactRanges(ArrayList ranges)(Code)(Java Doc) void fillTables() throws DocumentException, IOException(Code)(Java Doc) String getBaseFont() throws DocumentException, IOException(Code)(Java Doc) public String[] getCodePagesSupported()(Code)(Java Doc) public String[][] getFamilyFontName()(Code)(Java Doc) protected PdfDictionary getFontBaseType(PdfIndirectReference fontDescriptor, String subsetPrefix, int firstChar, int lastChar, byte shortTag)(Code)(Java Doc) protected PdfDictionary getFontDescriptor(PdfIndirectReference fontStream, String subsetPrefix)(Code)(Java Doc) public float getFontDescriptor(int key, float fontSize)(Code)(Java Doc) protected byte[] getFullFont() throws IOException(Code)(Java Doc) public String[][] getFullFontName()(Code)(Java Doc) protected int getGlyphWidth(int glyph)(Code)(Java Doc) public int getKerning(char char1, char char2)(Code)(Java Doc) public int[] getMetricsTT(int c)(Code)(Java Doc) String[][] getNames(int id) throws DocumentException, IOException(Code)(Java Doc) public String getPostscriptFontName()(Code)(Java Doc) protected int[] getRawCharBBox(int c, String name)(Code)(Java Doc) int getRawWidth(int c, String name)(Code)(Java Doc) protected static String getTTCName(String name)(Code)(Java Doc) public boolean hasKernPairs()(Code)(Java Doc) void process(byte ttfAfm) throws DocumentException, IOException(Code)(Java Doc) void readCMaps() throws DocumentException, IOException(Code)(Java Doc) HashMap readFormat0() throws IOException(Code)(Java Doc) HashMap readFormat4() throws IOException(Code)(Java Doc) HashMap readFormat6() throws IOException(Code)(Java Doc) protected void readGlyphWidths() throws DocumentException, IOException(Code)(Java Doc) void readKerning() throws IOException(Code)(Java Doc) protected String readStandardString(int length) throws IOException(Code)(Java Doc) protected String readUnicodeString(int length) throws IOException(Code)(Java Doc) public boolean setKerning(char char1, char char2, int kern)(Code)(Java Doc) public void setPostscriptFontName(String name)(Code)(Java Doc) void writeFont(PdfWriter writer, PdfIndirectReference ref, Object params) throws DocumentException, IOException(Code)(Java Doc)
|
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)
|
|
|