org.apache.fop.pdf
Class PDFCIDFont
- PDFWritable
Class representing a "character identifier" font (p 210 and onwards).
PDFCIDFont(String basefont, CIDFontType cidtype, int dw, int[] w, String registry, String ordering, int supplement, PDFCIDFontDescriptor descriptor) - Create the /Font object
|
PDFCIDFont(String basefont, CIDFontType cidtype, int dw, int[] w, PDFCIDSystemInfo systemInfo, PDFCIDFontDescriptor descriptor) - Create the /Font object
|
PDFCIDFont(String basefont, CIDFontType cidtype, int dw, PDFWArray w, PDFCIDSystemInfo systemInfo, PDFCIDFontDescriptor descriptor) - Create the /Font object
|
encode , encodeString , encodeText , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , hasObjectNumber , makeReference , output , referencePDF , setDocument , setObjectNumber , toInlinePDFString , toPDF , toPDFString |
PDFCIDFont
public PDFCIDFont(String basefont,
CIDFontType cidtype,
int dw,
int[] w,
String registry,
String ordering,
int supplement,
PDFCIDFontDescriptor descriptor)
Create the /Font object
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 descriptor
PDFCIDFont
public PDFCIDFont(String basefont,
CIDFontType cidtype,
int dw,
int[] w,
PDFCIDSystemInfo systemInfo,
PDFCIDFontDescriptor descriptor)
Create the /Font object
basefont
- Name of the basefontcidtype
- CID typedw
- default widthw
- array of character widthssystemInfo
- CID system infodescriptor
- CID font descriptor
PDFCIDFont
public PDFCIDFont(String basefont,
CIDFontType cidtype,
int dw,
PDFWArray w,
PDFCIDSystemInfo systemInfo,
PDFCIDFontDescriptor descriptor)
Create the /Font object
basefont
- Name of the basefontcidtype
- CID typedw
- default widthw
- array of character widthssystemInfo
- CID system infodescriptor
- CID font descriptor
getPDFNameForCIDFontType
protected String getPDFNameForCIDFontType(CIDFontType cidFontType)
Returns the PDF name for a certain CID font type.
cidFontType
- CID font type
setCIDMap
public void setCIDMap(PDFStream map)
Set the /CIDToGIDMap (to be used only for CIDFontType2)
map
- mapping information
setCIDMapIdentity
public void setCIDMapIdentity()
Set the /CIDToGIDMap (to be used only for CIDFontType2) to "Identity"
setCMAP
public void setCMAP(PDFCMap cmap)
Set the CMap used as /ToUnicode cmap
setDW
public void setDW(int dw)
Set the /DW attribute
setDW2
public void setDW2(int posY,
int displacementY)
Set the two elements of the /DW2 array
posY
- position vectordisplacementY
- displacement vector
setDW2
public void setDW2(int[] dw2)
Set the (two elements) /DW2 array
dw2
- the default metrics for vertical writing
setW
public void setW(PDFWArray w)
Set the /W array
setW2
public void setW2(PDFWArray w2)
Set the /W2 array
w2
- array of metrics for vertical writing
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.