public class PDFTextFontInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ENCODING_BUILT_IN
Constant specifying built-in encoding of the font.
|
static int |
ENCODING_CUSTOM_ENCODING
Constant specifying encoding where the base encoding is either
ENCODING_MACROMANENCODING or ENCODING_WINANSIENCODING
and some differences are specified in a font encoding dictionary. |
static int |
ENCODING_IDENTITY_H
Constant specifying encoding for Type 0 fonts where horizontally rendered
glyphs are identical to their character IDs (CIDs).
|
static int |
ENCODING_IDENTITY_V
Constant specifying encoding for Type 0 fonts where vertically rendered
glyphs are identical to their character IDs (CIDs).
|
static int |
ENCODING_MACROMANENCODING
Constant specifying Mac OS standard encoding.
|
static int |
ENCODING_STANDARDENCODING
Constant specifying built-in encoding of a Type 1 font.
|
static int |
ENCODING_WINANSIENCODING
Constant specifying Windows Code Page 1252 encoding.
|
static int |
FONT_TYPE_MULTIPLEMASTER_TYPE1
Constant specifying a multiple master font.
|
static int |
FONT_TYPE_TRUETYPE
Constant specifying a TrueType font.
|
static int |
FONT_TYPE_TYPE0
Constant specifying a composite font.
|
static int |
FONT_TYPE_TYPE1
Constant specifying a Type 1 font.
|
static int |
FONT_TYPE_TYPE3
Constant specifying a Type 3 font.
|
static int |
FONT_TYPE_UNKNOWN
Constant specifying a unknown font type.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAscent()
Returns maximum height above the baseline reached by any glyph in this
font.
|
double |
getDescent()
Returns maximum depth below the baseline reached by any glyph in this
font.
|
String |
getFontName()
Returns name of the font.
|
float |
getFontSize()
Returns size of the font.
|
int |
getFontStyle()
Returns style of the font.
|
int |
getFontType()
Returns type of font.
|
String |
toString() |
public static final int FONT_TYPE_UNKNOWN
public static final int FONT_TYPE_TYPE1
public static final int FONT_TYPE_TRUETYPE
public static final int FONT_TYPE_TYPE3
public static final int FONT_TYPE_TYPE0
public static final int FONT_TYPE_MULTIPLEMASTER_TYPE1
public static final int ENCODING_WINANSIENCODING
public static final int ENCODING_MACROMANENCODING
public static final int ENCODING_STANDARDENCODING
public static final int ENCODING_IDENTITY_H
public static final int ENCODING_IDENTITY_V
public static final int ENCODING_CUSTOM_ENCODING
ENCODING_MACROMANENCODING or ENCODING_WINANSIENCODING
and some differences are specified in a font encoding dictionary.public static final int ENCODING_BUILT_IN
public double getAscent()
public double getDescent()
public String getFontName()
public float getFontSize()
public int getFontStyle()
font stylepublic int getFontType()
type of font