Package org.apache.fop.afp.fonts
Class AFPPageFonts
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap
-
- org.apache.fop.afp.fonts.AFPPageFonts
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map
public class AFPPageFonts extends java.util.HashMapHolds the current page fonts- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AFPPageFonts()Default constructorAFPPageFonts(AFPPageFonts fonts)Parameterized constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AFPFontAttributesregisterFont(java.lang.String fontName, AFPFont font, int fontSize)Registers a font on the current page and returns font attributes-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
AFPPageFonts
public AFPPageFonts()
Default constructor
-
AFPPageFonts
public AFPPageFonts(AFPPageFonts fonts)
Parameterized constructor- Parameters:
fonts- an existing set of afp page fonts
-
-
Method Detail
-
registerFont
public AFPFontAttributes registerFont(java.lang.String fontName, AFPFont font, int fontSize)
Registers a font on the current page and returns font attributes- Parameters:
fontName- the internal font namefont- the AFPFontfontSize- the font point size- Returns:
- newly registered AFPFontAttributes
-
-