Java Doc for DocumentFont.java in  » PDF » pdf-itext » com » lowagie » text » pdf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » PDF » pdf itext » com.lowagie.text.pdf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.pdf.BaseFont
      com.lowagie.text.pdf.DocumentFont

DocumentFont
public class DocumentFont extends BaseFont (Code)

author:
   psoares



Constructor Summary
 DocumentFont(PRIndirectReference refFont)
    

Method Summary
public  booleancharExists(char c)
    
 byte[]convertToBytes(String text)
    
 byte[]convertToBytes(char char1)
    
public  int[]getCharBBox(char c)
    
public  String[][]getFamilyFontName()
     Gets the family name of the font.
public  floatgetFontDescriptor(int key, float fontSize)
     Gets the font parameter identified by key.
public  String[][]getFullFontName()
     Gets the full name of the font.
 PdfIndirectReferencegetIndirectReference()
    
public  intgetKerning(char char1, char char2)
     Gets the kerning between two Unicode chars.
public  StringgetPostscriptFontName()
     Gets the postscript font name.
protected  int[]getRawCharBBox(int c, String name)
    
 intgetRawWidth(int c, String name)
     Gets the width from the font according to the Unicode char c or the name.
public  intgetWidth(char char1)
     Gets the width of a char in normalized 1000 units.
public  intgetWidth(String text)
    
public  booleanhasKernPairs()
     Checks if the font has any kerning pairs.
public  booleansetKerning(char char1, char char2, int kern)
    
public  voidsetPostscriptFontName(String name)
     Sets the font name that will appear in the pdf font dictionary.
 voidwriteFont(PdfWriter writer, PdfIndirectReference ref, Object[] params)
     Outputs to the writer the font dictionaries and streams.


Constructor Detail
DocumentFont
DocumentFont(PRIndirectReference refFont)(Code)
Creates a new instance of DocumentFont




Method Detail
charExists
public boolean charExists(char c)(Code)



convertToBytes
byte[] convertToBytes(String text)(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



getIndirectReference
PdfIndirectReference getIndirectReference()(Code)



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



getWidth
public int getWidth(String text)(Code)



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



writeFont
void writeFont(PdfWriter writer, PdfIndirectReference ref, Object[] params) throws DocumentException, IOException(Code)
Outputs to the writer the font dictionaries and streams.
Parameters:
  writer - the writer for this document
Parameters:
  ref - the font indirect reference
Parameters:
  params - several parameters that depend on the font type
throws:
  IOException - on error
throws:
  DocumentException - error in generating the object



Fields inherited from com.lowagie.text.pdf.BaseFont
final public static int ASCENT(Code)(Java Doc)
final public static int AWT_ASCENT(Code)(Java Doc)
final public static int AWT_DESCENT(Code)(Java Doc)
final public static int AWT_LEADING(Code)(Java Doc)
final public static int AWT_MAXADVANCE(Code)(Java Doc)
final public static int BBOXLLX(Code)(Java Doc)
final public static int BBOXLLY(Code)(Java Doc)
final public static int BBOXURX(Code)(Java Doc)
final public static int BBOXURY(Code)(Java Doc)
final protected static HashMap BuiltinFonts14(Code)(Java Doc)
final public static boolean CACHED(Code)(Java Doc)
final public static int CAPHEIGHT(Code)(Java Doc)
final public static int[] CHAR_RANGE_ARABIC(Code)(Java Doc)
final public static int[] CHAR_RANGE_CYRILLIC(Code)(Java Doc)
final public static int[] CHAR_RANGE_HEBREW(Code)(Java Doc)
final public static int[] CHAR_RANGE_LATIN(Code)(Java Doc)
final public static char CID_NEWLINE(Code)(Java Doc)
final public static String COURIER(Code)(Java Doc)
final public static String COURIER_BOLD(Code)(Java Doc)
final public static String COURIER_BOLDOBLIQUE(Code)(Java Doc)
final public static String COURIER_OBLIQUE(Code)(Java Doc)
final public static String CP1250(Code)(Java Doc)
final public static String CP1252(Code)(Java Doc)
final public static String CP1257(Code)(Java Doc)
final public static int DESCENT(Code)(Java Doc)
final public static boolean EMBEDDED(Code)(Java Doc)
final public static int FONT_TYPE_CJK(Code)(Java Doc)
final public static int FONT_TYPE_DOCUMENT(Code)(Java Doc)
final public static int FONT_TYPE_T1(Code)(Java Doc)
final public static int FONT_TYPE_T3(Code)(Java Doc)
final public static int FONT_TYPE_TT(Code)(Java Doc)
final public static int FONT_TYPE_TTUNI(Code)(Java Doc)
final public static String HELVETICA(Code)(Java Doc)
final public static String HELVETICA_BOLD(Code)(Java Doc)
final public static String HELVETICA_BOLDOBLIQUE(Code)(Java Doc)
final public static String HELVETICA_OBLIQUE(Code)(Java Doc)
final public static String IDENTITY_H(Code)(Java Doc)
final public static String IDENTITY_V(Code)(Java Doc)
final public static int ITALICANGLE(Code)(Java Doc)
final public static String MACROMAN(Code)(Java Doc)
final public static boolean NOT_CACHED(Code)(Java Doc)
final public static boolean NOT_EMBEDDED(Code)(Java Doc)
final public static String RESOURCE_PATH(Code)(Java Doc)
final public static String SYMBOL(Code)(Java Doc)
final public static String TIMES_BOLD(Code)(Java Doc)
final public static String TIMES_BOLDITALIC(Code)(Java Doc)
final public static String TIMES_ITALIC(Code)(Java Doc)
final public static String TIMES_ROMAN(Code)(Java Doc)
final public static String WINANSI(Code)(Java Doc)
final public static String ZAPFDINGBATS(Code)(Java Doc)
protected int charBBoxes(Code)(Java Doc)
protected String differences(Code)(Java Doc)
protected boolean directTextToByte(Code)(Java Doc)
protected boolean embedded(Code)(Java Doc)
protected String encoding(Code)(Java Doc)
protected boolean fastWinansi(Code)(Java Doc)
protected static HashMap fontCache(Code)(Java Doc)
protected boolean fontSpecific(Code)(Java Doc)
int fontType(Code)(Java Doc)
protected boolean forceWidthsOutput(Code)(Java Doc)
final public static String notdef(Code)(Java Doc)
protected IntHashtable specialMap(Code)(Java Doc)
protected boolean subset(Code)(Java Doc)
protected ArrayList subsetRanges(Code)(Java Doc)
protected char unicodeDifferences(Code)(Java Doc)
protected int widths(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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.