Java Doc for CJKFont.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.CJKFont

CJKFont
class CJKFont extends BaseFont (Code)
Creates a CJK font compatible with the fonts in the Adobe Asian font Pack.
author:
   Paulo Soares (psoares@consiste.pt)


Field Summary
final static  StringCJK_ENCODING
    
static  HashtableallCMaps
    
static  HashtableallFonts
    
static  PropertiescjkEncodings
    
static  PropertiescjkFonts
    

Constructor Summary
 CJKFont(String fontName, String enc, boolean emb)
     Creates a CJK font.
Parameters:
  fontName - the name of the font
Parameters:
  enc - the encoding of the font
Parameters:
  emb - always false.

Method Summary
public  booleancharExists(char c)
     Checks if a character exists in this font.
static  StringconvertToHCIDMetrics(int keys, IntHashtable h)
    
static  StringconvertToVCIDMetrics(int keys, IntHashtable v, IntHashtable h)
    
static  IntHashtablecreateMetric(String s)
    
public  int[]getCharBBox(char c)
    
public  chargetCidCode(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.
public  intgetKerning(char char1, char char2)
    
public  StringgetPostscriptFontName()
    
protected  int[]getRawCharBBox(int c, String name)
    
 intgetRawWidth(int c, String name)
    
public  chargetUnicodeEquivalent(char c)
    
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 static  booleanisCJKFont(String fontName, String enc)
     Checks if its a valid CJK font.
static  char[]readCMap(String name)
    
static  HashMapreadFontProperties(String name)
    
public  booleansetCharAdvance(char c, int advance)
     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.
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)
    

Field Detail
CJK_ENCODING
final static String CJK_ENCODING(Code)
The encoding used in the PDF document for CJK fonts



allCMaps
static Hashtable allCMaps(Code)



allFonts
static Hashtable allFonts(Code)



cjkEncodings
static Properties cjkEncodings(Code)



cjkFonts
static Properties cjkFonts(Code)




Constructor Detail
CJKFont
CJKFont(String fontName, String enc, boolean emb) throws DocumentException(Code)
Creates a CJK font.
Parameters:
  fontName - the name of the font
Parameters:
  enc - the encoding of the font
Parameters:
  emb - always false. CJK font and not embedded
throws:
  DocumentException - on error




Method Detail
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



convertToHCIDMetrics
static String convertToHCIDMetrics(int keys, IntHashtable h)(Code)



convertToVCIDMetrics
static String convertToVCIDMetrics(int keys, IntHashtable v, IntHashtable h)(Code)



createMetric
static IntHashtable createMetric(String s)(Code)



getCharBBox
public int[] getCharBBox(char c)(Code)



getCidCode
public char getCidCode(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 and ITALICANGLE.
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)



getPostscriptFontName
public String getPostscriptFontName()(Code)



getRawCharBBox
protected int[] getRawCharBBox(int c, String name)(Code)



getRawWidth
int getRawWidth(int c, String name)(Code)



getUnicodeEquivalent
public char getUnicodeEquivalent(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)



hasKernPairs
public boolean hasKernPairs()(Code)
Checks if the font has any kerning pairs. always false



isCJKFont
public static boolean isCJKFont(String fontName, String enc)(Code)
Checks if its a valid CJK font.
Parameters:
  fontName - the font name
Parameters:
  enc - the encoding true if it is CJK font



readCMap
static char[] readCMap(String name)(Code)



readFontProperties
static HashMap readFontProperties(String name)(Code)



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. Will always return false



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. Use with care as it can easily make a font unreadable if not embedded.
Parameters:
  name - the new font name



writeFont
void writeFont(PdfWriter writer, PdfIndirectReference ref, Object params) throws DocumentException, IOException(Code)



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.