Class AFMParser
java.lang.Object
org.apache.fontbox.afm.AFMParser
This class is used to parse AFM(Adobe Font Metrics) documents.
- Author:
- Ben Litchfield
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis is ascender attribute.static final StringThis is the cap height attribute.static final StringThis is a composite character.static final StringThis is the char width.static final StringThis is the character set.static final StringThis is the characters attribute.static final StringThe character metrics value.static final StringThe character metrics c value.static final StringThe character metrics c value.static final StringThe character metrics value.static final StringThe character metrics value.static final StringThe character metrics value.static final StringThe character metrics value.static final StringThe character metrics value.static final StringThe character metrics value.static final StringThe character metrics value.static final StringThe character metrics value.static final StringThe character metrics value.static final StringThe character metrics value.static final StringThe character metrics value.static final StringThe character metrics value.static final StringThis is a comment in a AFM file.static final StringThis is the descender attribute.static final StringThis is the encoding scheme.static final StringThis is the end of character metrics.static final StringThis is the end composites data section.static final StringThis is the constant used in the AFM file to end a font metrics item.static final StringThis is the end of kern data.static final StringThis is the end of kern pairs data.static final StringThis is the end of track kern data.static final StringThis is the escape character.static final StringThis is the Family name.static final StringThis is the font bounding box.static final StringThis is the font name.static final StringThis is the full name.static final StringThis will determine if this is a base font.static final StringThis will determine if this is fixed pitch.static final StringThis will tell if the V is fixed.static final StringThis is the italic angle.static final StringThis is a kern pair.static final StringThis is a kern pair.static final StringThis is a kern pair.static final StringThis is a kern pair.static final StringThis is the mapping scheme.static final StringThis is the notice.static final StringThis is a composite character part.static final StringThis is the start of character metrics.static final StringThis is the start composites data section.static final StringThis is the constant used in the AFM file to start a font metrics item.static final StringThis is the start of kern data.static final StringThis is the start of kern pairs data.static final StringThis is the start of kern pairs data.static final StringThis is the start of kern pairs data.static final StringThis is the start of track kern data.static final StringThe character metrics value.static final StringThe character metrics value.static final StringThe underline position.static final StringThis is the Underline thickness.static final StringThis is the V Vector attribute.static final StringThis is the version of the font.static final StringThis is the weight.static final StringThis is the X height. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
COMMENT
-
START_FONT_METRICS
This is the constant used in the AFM file to start a font metrics item.- See Also:
-
END_FONT_METRICS
This is the constant used in the AFM file to end a font metrics item.- See Also:
-
FONT_NAME
-
FULL_NAME
-
FAMILY_NAME
-
WEIGHT
-
FONT_BBOX
-
VERSION
-
NOTICE
-
ENCODING_SCHEME
-
MAPPING_SCHEME
-
ESC_CHAR
-
CHARACTER_SET
-
CHARACTERS
-
IS_BASE_FONT
-
V_VECTOR
-
IS_FIXED_V
-
CAP_HEIGHT
-
X_HEIGHT
-
ASCENDER
-
DESCENDER
-
UNDERLINE_POSITION
-
UNDERLINE_THICKNESS
-
ITALIC_ANGLE
-
CHAR_WIDTH
-
IS_FIXED_PITCH
-
START_CHAR_METRICS
-
END_CHAR_METRICS
-
CHARMETRICS_C
-
CHARMETRICS_CH
-
CHARMETRICS_WX
-
CHARMETRICS_W0X
-
CHARMETRICS_W1X
-
CHARMETRICS_WY
-
CHARMETRICS_W0Y
-
CHARMETRICS_W1Y
-
CHARMETRICS_W
-
CHARMETRICS_W0
-
CHARMETRICS_W1
-
CHARMETRICS_VV
-
CHARMETRICS_N
-
CHARMETRICS_B
-
CHARMETRICS_L
-
STD_HW
-
STD_VW
-
START_TRACK_KERN
-
END_TRACK_KERN
-
START_KERN_DATA
-
END_KERN_DATA
-
START_KERN_PAIRS
-
END_KERN_PAIRS
-
START_KERN_PAIRS0
-
START_KERN_PAIRS1
-
START_COMPOSITES
-
END_COMPOSITES
-
CC
-
PCC
-
KERN_PAIR_KP
-
KERN_PAIR_KPH
-
KERN_PAIR_KPX
-
KERN_PAIR_KPY
-
-
Constructor Details
-
AFMParser
Constructor.- Parameters:
in- The input stream to read the AFM document from.
-
-
Method Details
-
parse
This will parse the AFM document. The input stream is closed when the parsing is finished.- Returns:
- the parsed FontMetric
- Throws:
IOException- If there is an IO error reading the document.
-
parse
This will parse the AFM document. The input stream is closed when the parsing is finished.- Parameters:
reducedDataset- parse a reduced subset of data if set to true- Returns:
- the parsed FontMetric
- Throws:
IOException- If there is an IO error reading the document.
-