Ascender
(package private) float Ascender
CapHeight
(package private) float CapHeight
Descender
(package private) float Descender
ItalicAngle
(package private) float ItalicAngle
cjkEncs
(package private) String[] cjkEncs
cjkMirror
(package private) BaseFont cjkMirror
cjkNames
(package private) String[] cjkNames
fontName
(package private) String fontName
llx
(package private) float llx
lly
(package private) float lly
stdEnc
(package private) static final int[] stdEnc
urx
(package private) float urx
ury
(package private) float ury
doType1TT
public void doType1TT()
fillEncoding
(package private) void fillEncoding(PdfName encoding)
fillFontDesc
(package private) void fillFontDesc()
getFamilyFontName
public String[][] getFamilyFontName()
Gets the family name of the font. If it is a True Type font
each array element will have {Platform ID, Platform Encoding ID,
Language ID, font name}. The interpretation of this values can be
found in the Open Type specification, chapter 2, in the 'name' table.
For the other fonts the array has a single element with {"", "", "",
font name}.
- getFamilyFontName in interface BaseFont
- the family name of the font
getFontDescriptor
public float getFontDescriptor(int key,
float fontSize)
Gets the font parameter identified by key
. Valid values
for key
are ASCENT
, CAPHEIGHT
, DESCENT
,
ITALICANGLE
, BBOXLLX
, BBOXLLY
, BBOXURX
and BBOXURY
.
- getFontDescriptor in interface BaseFont
key
- the parameter to be extractedfontSize
- the font size in points
getFullFontName
public String[][] getFullFontName()
Gets the full name of the font. If it is a True Type font
each array element will have {Platform ID, Platform Encoding ID,
Language ID, font name}. The interpretation of this values can be
found in the Open Type specification, chapter 2, in the 'name' table.
For the other fonts the array has a single element with {"", "", "",
font name}.
- getFullFontName in interface BaseFont
- the full name of the font
getKerning
public int getKerning(char char1,
char char2)
Gets the kerning between two Unicode chars.
- getKerning in interface BaseFont
char1
- the first charchar2
- the second char
- the kerning to be applied
getRawWidth
(package private) int getRawWidth(int c,
String name)
Gets the width from the font according to the Unicode char c
or the name
. If the name
is null it's a symbolic font.
- getRawWidth in interface BaseFont
c
- the unicode charname
- the glyph name
hasKernPairs
public boolean hasKernPairs()
Checks if the font has any kerning pairs.
- hasKernPairs in interface BaseFont
true
if the font has any kerning pairs
setKerning
public boolean setKerning(char char1,
char char2,
int kern)
- setKerning in interface BaseFont
setPostscriptFontName
public void setPostscriptFontName(String name)
Sets the font name that will appear in the pdf font dictionary.
It does nothing in this case as the font is already in the document.
- setPostscriptFontName in interface BaseFont
writeFont
(package private) void writeFont(PdfWriter writer,
PdfIndirectReference ref,
Object[] params)
throws DocumentException,
IOException
Outputs to the writer the font dictionaries and streams.
writer
- the writer for this documentref
- the font indirect referenceparams
- several parameters that depend on the font type