Package org.apache.fop.afp.fonts
Class AFPBase12FontCollection
java.lang.Object
org.apache.fop.afp.fonts.AFPBase12FontCollection
- All Implemented Interfaces:
FontCollection
Sets up a typical Base 12 font configuration for AFP
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String[]
standard raster font charset referencesprivate final AFPEventProducer
private static final int[]
standard raster font sizes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addCharacterSet
(RasterFont font, String charsetName, Base14Font base14) private int
addFontProperties
(FontInfo fontInfo, AFPFont font, String[] names, String style, int weight, int num) private RasterFont
createReferencedRasterFont
(String fontFamily) int
Sets up fonts in a font info object.
-
Field Details
-
eventProducer
-
RASTER_SIZES
private static final int[] RASTER_SIZESstandard raster font sizes -
CHARSET_REF
standard raster font charset references
-
-
Constructor Details
-
AFPBase12FontCollection
- Parameters:
eventProducer
- the AFP-specific event producer
-
-
Method Details
-
addCharacterSet
-
addFontProperties
-
setup
Sets up fonts in a font info object. Adds metrics for basic fonts and useful family-style-weight triplets for lookup.- Specified by:
setup
in interfaceFontCollection
- Parameters:
start
- the font starting numberfontInfo
- the font info to set up- Returns:
- the starting font number for the next font to be added
-
createReferencedRasterFont
-