|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.pdf.FontDetails
class FontDetails
Each font in the document will have an instance of this class where the characters used will be represented.
Field Summary | |
---|---|
(package private) BaseFont |
baseFont
The font |
(package private) CJKFont |
cjkFont
The font if it's an instance of CJKFont |
(package private) IntHashtable |
cjkTag
IntHashtable with CIDs of CJK glyphs that are used in the text. |
(package private) PdfName |
fontName
The font name that appears in the document body stream |
(package private) int |
fontType
The font type |
(package private) PdfIndirectReference |
indirectReference
The indirect reference to this font |
(package private) HashMap |
longTag
The map used with double byte encodings. |
(package private) byte[] |
shortTag
The array used with single byte encodings |
protected boolean |
subset
Indicates if only a subset of the glyphs and widths for that particular encoding should be included in the document. |
(package private) boolean |
symbolic
true if the font is symbolic |
(package private) TrueTypeFontUnicode |
ttu
The font if it's an instance of TrueTypeFontUnicode |
Constructor Summary | |
---|---|
FontDetails(PdfName fontName,
PdfIndirectReference indirectReference,
BaseFont baseFont)
Each font used in a document has an instance of this class. |
Method Summary | |
---|---|
(package private) byte[] |
convertToBytes(String text)
Converts the text into bytes to be placed in the document. |
(package private) BaseFont |
getBaseFont()
Gets the BaseFont of this font. |
(package private) PdfName |
getFontName()
Gets the font name as it appears in the document body. |
(package private) PdfIndirectReference |
getIndirectReference()
Gets the indirect reference to this font. |
boolean |
isSubset()
Indicates if all the glyphs and widths for that particular encoding should be included in the document. |
void |
setSubset(boolean subset)
Indicates if all the glyphs and widths for that particular encoding should be included in the document. |
(package private) void |
writeFont(PdfWriter writer)
Writes the font definition to the document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
PdfIndirectReference indirectReference
PdfName fontName
BaseFont baseFont
TrueTypeFontUnicode ttu
TrueTypeFontUnicode
CJKFont cjkFont
CJKFont
byte[] shortTag
HashMap longTag
IntHashtable cjkTag
int fontType
boolean symbolic
true
if the font is symbolic
protected boolean subset
Constructor Detail |
---|
FontDetails(PdfName fontName, PdfIndirectReference indirectReference, BaseFont baseFont)
fontName
- the font nameindirectReference
- the indirect reference to the fontbaseFont
- the BaseFont
Method Detail |
---|
PdfIndirectReference getIndirectReference()
PdfName getFontName()
BaseFont getBaseFont()
BaseFont
of this font.
BaseFont
of this fontbyte[] convertToBytes(String text)
text
- the text to convert
void writeFont(PdfWriter writer)
writer
- the PdfWriter
of this documentpublic boolean isSubset()
false
to include all the glyphs and widths.public void setSubset(boolean subset)
false
to include all.
subset
- new value of property subset
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |