|
fop 0.95 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFCIDFont
Class representing a "character identifier" font (p 210 and onwards).
Field Summary |
Fields inherited from class org.apache.fop.pdf.PDFObject |
DATE_FORMAT, log |
Constructor Summary | |
PDFCIDFont(java.lang.String basefont,
CIDFontType cidtype,
int dw,
int[] w,
PDFCIDSystemInfo systemInfo,
PDFCIDFontDescriptor descriptor)
Create the /Font object |
|
PDFCIDFont(java.lang.String basefont,
CIDFontType cidtype,
int dw,
int[] w,
java.lang.String registry,
java.lang.String ordering,
int supplement,
PDFCIDFontDescriptor descriptor)
Create the /Font object |
|
PDFCIDFont(java.lang.String basefont,
CIDFontType cidtype,
int dw,
PDFWArray w,
PDFCIDSystemInfo systemInfo,
PDFCIDFontDescriptor descriptor)
Create the /Font object |
Method Summary | |
protected java.lang.String |
getPDFNameForCIDFontType(CIDFontType cidFontType)
Returns the PDF name for a certain CID font type. |
void |
setCIDMap(PDFStream map)
Set the /CIDToGIDMap (to be used only for CIDFontType2) |
void |
setCIDMapIdentity()
Set the /CIDToGIDMap (to be used only for CIDFontType2) to "Identity" |
void |
setCMAP(PDFCMap cmap)
Set the CMap used as /ToUnicode cmap |
void |
setDW(int dw)
Set the /DW attribute |
void |
setDW2(int[] dw2)
Set the (two elements) /DW2 array |
void |
setDW2(int posY,
int displacementY)
Set the two elements of the /DW2 array |
void |
setW(PDFWArray w)
Set the /W array |
void |
setW2(PDFWArray w2)
Set the /W2 array |
java.lang.String |
toPDFString()
This method returns a String representation of the PDF object. The result is normally converted/encoded to a byte array by toPDF(). Only use this method to implement the serialization if the object can be fully represented as text. If the PDF representation of the object contains binary content use toPDF() or output(OutputStream) instead. This applies to any object potentially containing a string object because string object are encrypted and therefore need to be binary. |
Methods inherited from class org.apache.fop.pdf.PDFObject |
encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PDFCIDFont(java.lang.String basefont, CIDFontType cidtype, int dw, int[] w, java.lang.String registry, java.lang.String ordering, int supplement, PDFCIDFontDescriptor descriptor)
basefont
- Name of the basefontcidtype
- CID typedw
- default widthw
- array of character widthsregistry
- name of the issuerordering
- Unique name of the fontsupplement
- Supplement numberdescriptor
- CID font descriptorpublic PDFCIDFont(java.lang.String basefont, CIDFontType cidtype, int dw, int[] w, PDFCIDSystemInfo systemInfo, PDFCIDFontDescriptor descriptor)
basefont
- Name of the basefontcidtype
- CID typedw
- default widthw
- array of character widthssystemInfo
- CID system infodescriptor
- CID font descriptorpublic PDFCIDFont(java.lang.String basefont, CIDFontType cidtype, int dw, PDFWArray w, PDFCIDSystemInfo systemInfo, PDFCIDFontDescriptor descriptor)
basefont
- Name of the basefontcidtype
- CID typedw
- default widthw
- array of character widthssystemInfo
- CID system infodescriptor
- CID font descriptorMethod Detail |
public void setDW(int dw)
dw
- the default widthpublic void setW(PDFWArray w)
w
- the width arraypublic void setDW2(int[] dw2)
dw2
- the default metrics for vertical writingpublic void setDW2(int posY, int displacementY)
posY
- position vectordisplacementY
- displacement vectorpublic void setCMAP(PDFCMap cmap)
cmap
- character mappublic void setW2(PDFWArray w2)
w2
- array of metrics for vertical writingpublic void setCIDMap(PDFStream map)
map
- mapping informationpublic void setCIDMapIdentity()
protected java.lang.String getPDFNameForCIDFontType(CIDFontType cidFontType)
cidFontType
- CID font type
public java.lang.String toPDFString()
toPDFString
in class PDFObject
|
fop 0.95 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |