Package org.docx4j.fonts.fop.fonts
Class CIDFont
java.lang.Object
org.docx4j.fonts.fop.fonts.Typeface
org.docx4j.fonts.fop.fonts.CustomFont
org.docx4j.fonts.fop.fonts.CIDFont
- All Implemented Interfaces:
FontDescriptor,FontMetrics,MutableFont
- Direct Known Subclasses:
MultiByteFont
public abstract class CIDFont extends CustomFont
Abstract base class for CID fonts.
-
Field Summary
Fields Modifier and Type Field Description protected int[]widthContains the character widths for all characters in the font -
Constructor Summary
Constructors Constructor Description CIDFont() -
Method Summary
Modifier and Type Method Description abstract CIDSubsetgetCIDSubset()Returns the subset information for this font.abstract CIDFontTypegetCIDType()Returns the type of the CID font.intgetDefaultWidth()Returns the default width for this font.abstract java.lang.StringgetOrdering()Returns a font name for use within a registry.abstract java.lang.StringgetRegistry()Returns the name of the issuer of the font.abstract intgetSupplement()Returns the supplement number of the character collection.booleanisMultiByte()Determines whether the font is a multibyte font.Methods inherited from class org.docx4j.fonts.fop.fonts.CustomFont
getAscender, getAscender, getCapHeight, getCapHeight, getDescender, getDescender, getEmbedFileName, getEmbedFileSource, getEmbedFontName, 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, setXHeightMethods inherited from class org.docx4j.fonts.fop.fonts.Typeface
getEncodingName, getMaxAscent, hadMappingOperations, hasChar, mapChar, notifyMapOperation, setEventListener, toString, warnMissingGlyphMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.docx4j.fonts.fop.fonts.FontMetrics
getMaxAscent, getWidth, getWidths
-
Field Details
-
width
protected int[] widthContains the character widths for all characters in the font
-
-
Constructor Details
-
CIDFont
public CIDFont()
-
-
Method Details
-
getCIDType
Returns the type of the CID font.- Returns:
- the type of the CID font
-
getRegistry
public abstract java.lang.String getRegistry()Returns the name of the issuer of the font.- Returns:
- a String identifying an issuer of character collections - for example, Adobe
-
getOrdering
public abstract java.lang.String getOrdering()Returns a font name for use within a registry.- Returns:
- a String that uniquely names a character collection issued by a specific registry - for example, Japan1.
-
getSupplement
public abstract int getSupplement()Returns the supplement number of the character collection.- Returns:
- the supplement number
-
getCIDSubset
Returns the subset information for this font.- Returns:
- the subset information
-
getDefaultWidth
public int getDefaultWidth()Returns the default width for this font.- Returns:
- the default width
-
isMultiByte
public boolean isMultiByte()Determines whether the font is a multibyte font.- Overrides:
isMultiBytein classTypeface- Returns:
- True if it is multibyte
-