public class MultiByteFont extends CIDFont
eventListener, NOT_FOUND| Constructor and Description |
|---|
MultiByteFont()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getEmbedFontName()
Returns the font name for font embedding (may include a prefix, Example: "1E28bcArialMT").
|
String |
getEncodingName()
Get the encoding of the font.
|
String |
getOrdering()
Returns a font name for use within a registry.
|
String |
getRegistry()
Returns the name of the issuer of the font.
|
int |
getSupplement()
Returns the supplement number of the character collection.
|
String |
getTTCName()
Returns the TrueType Collection Name.
|
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.
|
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(String ttcName)
Sets the the TrueType Collection Name.
|
void |
setWidthArray(int[] wds)
Sets the width array.
|
isMultiBytegetAscender, getAscender, getCapHeight, getCapHeight, getDescender, getDescender, getEmbedFileName, getEmbedFileSource, getEmbedResourceName, getFamilyNames, getFirstChar, getFlags, getFontBBox, getFontName, getFontSubName, getFontType, getFullName, getItalicAngle, getKerningInfo, getLastChar, getMissingWidth, getPanose, getStemV, getStrippedFontName, getWeight, getXHeight, hasKerningInfo, isEmbeddable, isKerningEnabled, isSymbolicFont, putKerningEntry, replaceKerningMap, setAscender, setCapHeight, setDescender, setEmbeddable, setEmbedFileName, setEmbedResourceName, setFamilyNames, setFirstChar, setFlags, setFontBBox, setFontName, setFontSubFamilyName, setFontType, setFullName, setItalicAngle, setKerningEnabled, setLastChar, setMissingWidth, setPanose, setResolver, setStemV, setWeight, setXHeightgetMaxAscent, hadMappingOperations, notifyMapOperation, setEventListener, toString, warnMissingGlyphclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMaxAscentpublic int getDefaultWidth()
getDefaultWidth in class CIDFontpublic String getRegistry()
getRegistry in class CIDFontpublic String getOrdering()
getOrdering in class CIDFontpublic int getSupplement()
getSupplement in class CIDFontpublic CIDFontType getCIDType()
getCIDType in class CIDFontpublic void setCIDType(CIDFontType cidType)
cidType - The cidType to setpublic String getEmbedFontName()
getEmbedFontName in interface FontMetricsgetEmbedFontName in class CustomFontpublic CIDSubset getCIDSubset()
getCIDSubset in class CIDFontpublic String getEncodingName()
getEncodingName in class Typefacepublic int getWidth(int i,
int size)
i - code point indexsize - font sizepublic 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)
public boolean hasChar(char c)
public void setBFEntries(BFEntry[] entries)
entries - the Unicode to glyph index mappublic void setDefaultWidth(int defaultWidth)
defaultWidth - The defaultWidth to setpublic String getTTCName()
public void setTTCName(String ttcName)
ttcName - the TrueType Collection Namepublic void setWidthArray(int[] wds)
wds - array of widths.public Map getUsedGlyphs()
public char[] getCharsUsed()
Copyright © 2007-2020. All Rights Reserved.