Package com.lowagie.text.pdf
Class FontDetails
java.lang.Object
com.lowagie.text.pdf.FontDetails
Deprecated.
Each font in the document will have an instance of this class where the characters used will be represented.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BaseFontDeprecated.The font(package private) CJKFontDeprecated.The font if it's an instance ofCJKFont(package private) IntHashtableDeprecated.IntHashtable with CIDs of CJK glyphs that are used in the text.Deprecated.Contain glyphs that used but missing in Cmap.(package private) PdfNameDeprecated.The font name that appears in the document body stream(package private) intDeprecated.The font type(package private) PdfIndirectReferenceDeprecated.The indirect reference to this fontDeprecated.The map used with double byte encodings.(package private) byte[]Deprecated.The array used with single byte encodingsprotected booleanDeprecated.Indicates if only a subset of the glyphs and widths for that particular encoding should be included in the document.(package private) booleanDeprecated.trueif the font is symbolic(package private) TrueTypeFontUnicodeDeprecated.The font if it's an instance ofTrueTypeFontUnicode -
Constructor Summary
ConstructorsConstructorDescriptionFontDetails(PdfName fontName, PdfIndirectReference indirectReference, BaseFont baseFont) Deprecated.Each font used in a document has an instance of this class. -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddMissingCmapEntries(String text, GlyphVector glyphVector, BaseFont baseFont) Deprecated.(package private) byte[]convertToBytes(GlyphVector glyphVector, int beginIndex, int endIndex) Deprecated.(package private) byte[]convertToBytes(String text, TextRenderingOptions options) Deprecated.Converts the text into bytes to be placed in the document.(package private) byte[]convertToBytes(List<Integer> glyphCodes) Deprecated.Convert a glyph code to bytesprivate byte[]Deprecated.(package private) BaseFontDeprecated.Gets theBaseFontof this font.private static byte[]getBytesFromCodePoints(List<Integer> codePoints) Deprecated.private byte[]getCJKEncodingBytes(int[] glyph, int size) Deprecated.Deprecated.(package private) PdfNameDeprecated.Gets the font name as it appears in the document body.(package private) PdfIndirectReferenceDeprecated.Gets the indirect reference to this font.booleanisSubset()Deprecated.Indicates if all the glyphs and widths for that particular encoding should be included in the document.(package private) voidputFillerCmap(Integer key, int[] value) Deprecated.voidsetSubset(boolean subset) Deprecated.Indicates if all the glyphs and widths for that particular encoding should be included in the document.(package private) voidDeprecated.Writes the font definition to the document.
-
Field Details
-
subset
protected boolean subsetDeprecated.Indicates if only a subset of the glyphs and widths for that particular encoding should be included in the document. -
indirectReference
PdfIndirectReference indirectReferenceDeprecated.The indirect reference to this font -
fontName
PdfName fontNameDeprecated.The font name that appears in the document body stream -
baseFont
BaseFont baseFontDeprecated.The font -
ttu
Deprecated.The font if it's an instance ofTrueTypeFontUnicode -
cjkFont
CJKFont cjkFontDeprecated.The font if it's an instance ofCJKFont -
shortTag
byte[] shortTagDeprecated.The array used with single byte encodings -
longTag
Deprecated.The map used with double byte encodings. The key is Integer(glyph) and the value is int[]{glyph, width, Unicode code} -
cjkTag
IntHashtable cjkTagDeprecated.IntHashtable with CIDs of CJK glyphs that are used in the text. -
fontType
int fontTypeDeprecated.The font type -
symbolic
boolean symbolicDeprecated.trueif the font is symbolic -
fillerCmap
Deprecated.Contain glyphs that used but missing in Cmap. the value is int[]{glyph, Unicode code}
-
-
Constructor Details
-
FontDetails
FontDetails(PdfName fontName, PdfIndirectReference indirectReference, BaseFont baseFont) Deprecated.Each font used in a document has an instance of this class. This class stores the characters used in the document and other specifics unique to the current working document.- Parameters:
fontName- the font nameindirectReference- the indirect reference to the fontbaseFont- theBaseFont
-
-
Method Details
-
getFillerCmap
Deprecated. -
putFillerCmap
Deprecated. -
addMissingCmapEntries
Deprecated. -
getIndirectReference
PdfIndirectReference getIndirectReference()Deprecated.Gets the indirect reference to this font.- Returns:
- the indirect reference to this font
-
getFontName
PdfName getFontName()Deprecated.Gets the font name as it appears in the document body.- Returns:
- the font name
-
getBaseFont
BaseFont getBaseFont()Deprecated.Gets theBaseFontof this font.- Returns:
- the
BaseFontof this font
-
convertToBytes
Deprecated.Converts the text into bytes to be placed in the document. The conversion is done according to the font and the encoding and the characters used are stored.- Parameters:
text- the text to convert- Returns:
- the conversion
-
convertToBytesWithGlyphs
Deprecated. -
getCJKEncodingBytes
private byte[] getCJKEncodingBytes(int[] glyph, int size) Deprecated. -
convertToBytes
Deprecated.Convert a glyph code to bytes- Parameters:
glyphCodes- List of glyph codes- Returns:
- byte array with one or two bytes as UTF-16BE representation of the glyph code
- See Also:
-
convertToBytes(GlyphVector glyphVector,...)
-
getBytesFromCodePoints
Deprecated. -
convertToBytes
Deprecated. -
writeFont
Deprecated.Writes the font definition to the document.- Parameters:
writer- thePdfWriterof this document
-
isSubset
public boolean isSubset()Deprecated.Indicates if all the glyphs and widths for that particular encoding should be included in the document.- Returns:
falseto include all the glyphs and widths.
-
setSubset
public void setSubset(boolean subset) Deprecated.Indicates if all the glyphs and widths for that particular encoding should be included in the document. Set tofalseto include all.- Parameters:
subset- new value of property subset
-