public class AFMParser extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static String | ASCENDERThis is ascender attribute. | 
| static String | CAP_HEIGHTThis is the cap height attribute. | 
| static String | CCThis is a composite character. | 
| static String | CHAR_WIDTHThis is the char width. | 
| static String | CHARACTER_SETThis is the character set. | 
| static String | CHARACTERSThis is the characters attribute. | 
| static String | CHARMETRICS_BThe character metrics value. | 
| static String | CHARMETRICS_CThe character metrics c value. | 
| static String | CHARMETRICS_CHThe character metrics c value. | 
| static String | CHARMETRICS_LThe character metrics value. | 
| static String | CHARMETRICS_NThe character metrics value. | 
| static String | CHARMETRICS_VVThe character metrics value. | 
| static String | CHARMETRICS_WThe character metrics value. | 
| static String | CHARMETRICS_W0The character metrics value. | 
| static String | CHARMETRICS_W0XThe character metrics value. | 
| static String | CHARMETRICS_W0YThe character metrics value. | 
| static String | CHARMETRICS_W1The character metrics value. | 
| static String | CHARMETRICS_W1XThe character metrics value. | 
| static String | CHARMETRICS_W1YThe character metrics value. | 
| static String | CHARMETRICS_WXThe character metrics value. | 
| static String | CHARMETRICS_WYThe character metrics value. | 
| static String | COMMENTThis is a comment in a AFM file. | 
| static String | DESCENDERThis is the descender attribute. | 
| static String | ENCODING_SCHEMEThis is the encoding scheme. | 
| static String | END_CHAR_METRICSThis is the end of character metrics. | 
| static String | END_COMPOSITESThis is the end compisites data section. | 
| static String | END_FONT_METRICSThis is the constant used in the AFM file to end a font metrics item. | 
| static String | END_KERN_DATAThis is the end of kern data. | 
| static String | END_KERN_PAIRSThis is the end of kern pairs data. | 
| static String | END_TRACK_KERNThis is the end of track kern data. | 
| static String | ESC_CHARThis is the escape character. | 
| static String | FAMILY_NAMEThis is the Family name. | 
| static String | FONT_BBOXThis is the font bounding box. | 
| static String | FONT_NAMEThis is the font name. | 
| static String | FULL_NAMEThis is the full name. | 
| static String | IS_BASE_FONTThis will determine if this is a base font. | 
| static String | IS_FIXED_PITCHThis will determine if this is fixed pitch. | 
| static String | IS_FIXED_VThis will tell if the V is fixed. | 
| static String | ITALIC_ANGLEThis is the italic angle. | 
| static String | KERN_PAIR_KPThis is a kern pair. | 
| static String | KERN_PAIR_KPHThis is a kern pair. | 
| static String | KERN_PAIR_KPXThis is a kern pair. | 
| static String | KERN_PAIR_KPYThis is a kern pair. | 
| static String | MAPPING_SCHEMEThis is the mapping scheme. | 
| static String | NOTICEThis is the notice. | 
| static String | PCCThis is a composite charater part. | 
| static String | START_CHAR_METRICSThis is the start of character metrics. | 
| static String | START_COMPOSITESThis is the start compisites data section. | 
| static String | START_FONT_METRICSThis is the constant used in the AFM file to start a font metrics item. | 
| static String | START_KERN_DATAThis is the start of kern data. | 
| static String | START_KERN_PAIRSThis is the start of kern pairs data. | 
| static String | START_KERN_PAIRS0This is the start of kern pairs data. | 
| static String | START_KERN_PAIRS1This is the start of kern pairs data. | 
| static String | START_TRACK_KERNThis is the start of track kern data. | 
| static String | STD_HWThe character metrics value. | 
| static String | STD_VWThe character metrics value. | 
| static String | UNDERLINE_POSITIONThe underline position. | 
| static String | UNDERLINE_THICKNESSThis is the Underline thickness. | 
| static String | V_VECTORThis is the V Vector attribute. | 
| static String | VERSIONThis is the version of the font. | 
| static String | WEIGHTThis is the weight. | 
| static String | X_HEIGHTThis is the X height. | 
| Constructor and Description | 
|---|
| AFMParser(InputStream in)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| FontMetrics | parse()This will parse the AFM document. | 
| FontMetrics | parse(boolean reducedDataset)This will parse the AFM document. | 
public static final String COMMENT
public static final String START_FONT_METRICS
public static final String END_FONT_METRICS
public static final String FONT_NAME
public static final String FULL_NAME
public static final String FAMILY_NAME
public static final String WEIGHT
public static final String FONT_BBOX
public static final String VERSION
public static final String NOTICE
public static final String ENCODING_SCHEME
public static final String MAPPING_SCHEME
public static final String ESC_CHAR
public static final String CHARACTER_SET
public static final String CHARACTERS
public static final String IS_BASE_FONT
public static final String V_VECTOR
public static final String IS_FIXED_V
public static final String CAP_HEIGHT
public static final String X_HEIGHT
public static final String ASCENDER
public static final String DESCENDER
public static final String UNDERLINE_POSITION
public static final String UNDERLINE_THICKNESS
public static final String ITALIC_ANGLE
public static final String CHAR_WIDTH
public static final String IS_FIXED_PITCH
public static final String START_CHAR_METRICS
public static final String END_CHAR_METRICS
public static final String CHARMETRICS_C
public static final String CHARMETRICS_CH
public static final String CHARMETRICS_WX
public static final String CHARMETRICS_W0X
public static final String CHARMETRICS_W1X
public static final String CHARMETRICS_WY
public static final String CHARMETRICS_W0Y
public static final String CHARMETRICS_W1Y
public static final String CHARMETRICS_W
public static final String CHARMETRICS_W0
public static final String CHARMETRICS_W1
public static final String CHARMETRICS_VV
public static final String CHARMETRICS_N
public static final String CHARMETRICS_B
public static final String CHARMETRICS_L
public static final String STD_HW
public static final String STD_VW
public static final String START_TRACK_KERN
public static final String END_TRACK_KERN
public static final String START_KERN_DATA
public static final String END_KERN_DATA
public static final String START_KERN_PAIRS
public static final String END_KERN_PAIRS
public static final String START_KERN_PAIRS0
public static final String START_KERN_PAIRS1
public static final String START_COMPOSITES
public static final String END_COMPOSITES
public static final String CC
public static final String PCC
public static final String KERN_PAIR_KP
public static final String KERN_PAIR_KPH
public static final String KERN_PAIR_KPX
public static final String KERN_PAIR_KPY
public AFMParser(InputStream in)
in - The input stream to read the AFM document from.public FontMetrics parse() throws IOException
IOException - If there is an IO error reading the document.public FontMetrics parse(boolean reducedDataset) throws IOException
reducedDataset - parse a reduced subset of data if set to trueIOException - If there is an IO error reading the document.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.