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:
Serializable
,Cloneable
,Map
Holds the current page fonts
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorDescriptionDefault constructorAFPPageFonts
(AFPPageFonts fonts) Parameterized constructor -
Method Summary
Modifier and TypeMethodDescriptionregisterFont
(String fontName, AFPFont font, int fontSize) Registers a font on the current page and returns font attributesMethods 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
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
AFPPageFonts
public AFPPageFonts()Default constructor -
AFPPageFonts
Parameterized constructor- Parameters:
fonts
- an existing set of afp page fonts
-
-
Method Details
-
registerFont
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
-