|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fonts.Typeface
org.apache.fop.fonts.CustomFont
org.apache.fop.fonts.CIDFont
org.apache.fop.fonts.MultiByteFont
public class MultiByteFont
Generic MultiByte (CID) font
Field Summary |
---|
Fields inherited from class org.apache.fop.fonts.CIDFont |
---|
width |
Fields inherited from class org.apache.fop.fonts.Typeface |
---|
eventListener, NOT_FOUND |
Constructor Summary | |
---|---|
MultiByteFont()
Default constructor |
Method Summary | |
---|---|
char[] |
getCharsUsed()
|
CIDSubset |
getCIDSubset()
Returns the subset information for this font. |
CIDFontType |
getCIDType()
Returns the type of the CID font. |
int |
getDefaultWidth()
Returns the default width for this font. |
java.lang.String |
getEmbedFontName()
Returns the font name for font embedding (may include a prefix, Example: "1E28bcArialMT"). |
java.lang.String |
getEncodingName()
Get the encoding of the font. |
java.lang.String |
getOrdering()
Returns a font name for use within a registry. |
java.lang.String |
getRegistry()
Returns the name of the issuer of the font. |
int |
getSupplement()
Returns the supplement number of the character collection. |
java.lang.String |
getTTCName()
Returns the TrueType Collection Name. |
java.util.Map |
getUsedGlyphs()
Returns a Map of used Glyphs. |
int |
getWidth(int i,
int size)
Return the width (in 1/1000ths of point size) of the character at code point i. |
int[] |
getWidths()
Return the array of widths. |
boolean |
hasChar(char c)
Determines whether this font contains a particular character/glyph. |
boolean |
isEmbeddable()
Indicates if this font may be embedded. |
char |
mapChar(char c)
Map a Unicode character to a code point in the font. |
void |
setBFEntries(BFEntry[] entries)
Sets the array of BFEntry instances which constitutes the Unicode to glyph index map for a font. |
void |
setCIDType(CIDFontType cidType)
Sets the CIDType. |
void |
setDefaultWidth(int defaultWidth)
Sets the defaultWidth. |
void |
setTTCName(java.lang.String ttcName)
Sets the the TrueType Collection Name. |
void |
setWidthArray(int[] wds)
Sets the width array. |
Methods inherited from class org.apache.fop.fonts.CIDFont |
---|
isMultiByte |
Methods inherited from class org.apache.fop.fonts.Typeface |
---|
getMaxAscent, hadMappingOperations, notifyMapOperation, setEventListener, toString, warnMissingGlyph |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.fop.fonts.FontMetrics |
---|
getMaxAscent |
Constructor Detail |
---|
public MultiByteFont()
Method Detail |
---|
public int getDefaultWidth()
getDefaultWidth
in class CIDFont
public java.lang.String getRegistry()
getRegistry
in class CIDFont
public java.lang.String getOrdering()
getOrdering
in class CIDFont
public int getSupplement()
getSupplement
in class CIDFont
public CIDFontType getCIDType()
getCIDType
in class CIDFont
public void setCIDType(CIDFontType cidType)
cidType
- The cidType to setpublic java.lang.String getEmbedFontName()
getEmbedFontName
in interface FontMetrics
getEmbedFontName
in class CustomFont
public boolean isEmbeddable()
public CIDSubset getCIDSubset()
getCIDSubset
in class CIDFont
public java.lang.String getEncodingName()
getEncodingName
in class Typeface
public int getWidth(int i, int size)
i
- code point indexsize
- font size
public int[] getWidths()
This is used to get an array for inserting in an output format. It should not be used for lookup.
public char mapChar(char c)
mapChar
in class Typeface
c
- character to map
public boolean hasChar(char c)
hasChar
in class Typeface
c
- character to check
public void setBFEntries(BFEntry[] entries)
entries
- the Unicode to glyph index mappublic void setDefaultWidth(int defaultWidth)
defaultWidth
- The defaultWidth to setpublic java.lang.String getTTCName()
public void setTTCName(java.lang.String ttcName)
ttcName
- the TrueType Collection Namepublic void setWidthArray(int[] wds)
wds
- array of widths.public java.util.Map getUsedGlyphs()
public char[] getCharsUsed()
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |