public class MultiByteFont extends CIDFont implements Substitutable, Positionable
cmap
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.
|
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.
|
GlyphDefinitionTable |
getGDEF()
Obtain glyph definition table.
|
GlyphPositioningTable |
getGPOS()
Obtain glyph positioning table.
|
GlyphSubstitutionTable |
getGSUB()
Obtain glyph substitution table.
|
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<java.lang.Integer,java.lang.Integer> |
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.
|
boolean |
isSubsetEmbedded()
Indicates whether this font is subset embedded.
|
char |
mapChar(char c)
Map a Unicode character to a code point in the font.
|
int[][] |
performPositioning(java.lang.CharSequence cs,
java.lang.String script,
java.lang.String language)
Perform glyph positioning using an implied font size.
|
int[][] |
performPositioning(java.lang.CharSequence cs,
java.lang.String script,
java.lang.String language,
int fontSize)
Perform glyph positioning.
|
boolean |
performsPositioning()
Determines if font performs glyph positioning.
|
boolean |
performsSubstitution()
Determines if font performs glyph substitution.
|
java.lang.CharSequence |
performSubstitution(java.lang.CharSequence cs,
java.lang.String script,
java.lang.String language)
Perform substitutions on characters to effect glyph substitution.
|
java.lang.CharSequence |
reorderCombiningMarks(java.lang.CharSequence cs,
int[][] gpa,
java.lang.String script,
java.lang.String language)
Reorder combining marks in character sequence so that they precede (within the sequence) the base
character to which they are applied.
|
void |
setCIDType(CIDFontType cidType)
Sets the CIDType.
|
void |
setDefaultWidth(int defaultWidth)
Sets the defaultWidth.
|
void |
setGDEF(GlyphDefinitionTable gdef)
Establishes the glyph definition table.
|
void |
setGPOS(GlyphPositioningTable gpos)
Establishes the glyph positioning table.
|
void |
setGSUB(GlyphSubstitutionTable gsub)
Establishes the glyph substitution table.
|
void |
setTTCName(java.lang.String ttcName)
Sets the the TrueType Collection Name.
|
void |
setWidthArray(int[] wds)
Sets the width array.
|
isMultiByte
getAscender, getAscender, getCapHeight, getCapHeight, getCMap, getDescender, getDescender, getEmbeddingMode, getEmbedFileName, getEmbedFileSource, getEmbedResourceName, getFamilyNames, getFirstChar, getFlags, getFontBBox, getFontName, getFontSubName, getFontType, getFullName, getItalicAngle, getKerningInfo, getLastChar, getMissingWidth, getStemV, getStrippedFontName, getWeight, getXHeight, hasKerningInfo, isAdvancedEnabled, isKerningEnabled, isSymbolicFont, putKerningEntry, replaceKerningMap, setAdvancedEnabled, setAscender, setCapHeight, setCMap, setDescender, setEmbeddingMode, setEmbedFileName, setEmbedResourceName, setFamilyNames, setFirstChar, setFlags, setFontBBox, setFontName, setFontSubFamilyName, setFontType, setFullName, setItalicAngle, setKerningEnabled, setLastChar, setMissingWidth, setResolver, setStemV, setWeight, setXHeight
getMaxAscent, hadMappingOperations, notifyMapOperation, setEventListener, toString, warnMissingGlyph
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMaxAscent
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()
isEmbeddable
in interface FontDescriptor
public boolean isSubsetEmbedded()
FontDescriptor
isSubsetEmbedded
in interface FontDescriptor
public CIDSubset getCIDSubset()
getCIDSubset
in class CIDFont
public java.lang.String getEncodingName()
getEncodingName
in class Typeface
public int getWidth(int i, int size)
getWidth
in interface FontMetrics
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.
getWidths
in interface FontMetrics
public char mapChar(char c)
public boolean hasChar(char c)
public 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<java.lang.Integer,java.lang.Integer> getUsedGlyphs()
public char[] getCharsUsed()
public void setGDEF(GlyphDefinitionTable gdef)
gdef
- the glyph definition table to be used by this fontpublic GlyphDefinitionTable getGDEF()
public void setGSUB(GlyphSubstitutionTable gsub)
gsub
- the glyph substitution table to be used by this fontpublic GlyphSubstitutionTable getGSUB()
public void setGPOS(GlyphPositioningTable gpos)
gpos
- the glyph positioning table to be used by this fontpublic GlyphPositioningTable getGPOS()
public boolean performsSubstitution()
performsSubstitution
in interface Substitutable
public java.lang.CharSequence performSubstitution(java.lang.CharSequence cs, java.lang.String script, java.lang.String language)
performSubstitution
in interface Substitutable
cs
- character sequence to map to output font encoding character sequencescript
- a script identifierlanguage
- a language identifierpublic java.lang.CharSequence reorderCombiningMarks(java.lang.CharSequence cs, int[][] gpa, java.lang.String script, java.lang.String language)
reorderCombiningMarks
in interface Substitutable
cs
- character sequence within which combining marks to be reorderedgpa
- associated glyph position adjustments (also reordered)script
- a script identifierlanguage
- a language identifierpublic boolean performsPositioning()
performsPositioning
in interface Positionable
public int[][] performPositioning(java.lang.CharSequence cs, java.lang.String script, java.lang.String language, int fontSize)
performPositioning
in interface Positionable
cs
- character sequence to map to position offsets (advancement adjustments)script
- a script identifierlanguage
- a language identifierfontSize
- font sizepublic int[][] performPositioning(java.lang.CharSequence cs, java.lang.String script, java.lang.String language)
performPositioning
in interface Positionable
cs
- character sequence to map to position offsets (advancement adjustments)script
- a script identifierlanguage
- a language identifierCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.