Package org.apache.fop.svg
Class ACIUtils
java.lang.Object
org.apache.fop.svg.ACIUtils
Utilities for java.text.AttributedCharacterIterator.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Dumps the contents of an ACI to System.out.static Font[]
findFontsForBatikACI
(AttributedCharacterIterator aci, FontInfo fontInfo) Tries to find matching fonts in FOP'sFontInfo
instance for fonts used by Apache Batik.static int
toCSSWeight
(Float weight) static String
-
Method Details
-
findFontsForBatikACI
Tries to find matching fonts in FOP'sFontInfo
instance for fonts used by Apache Batik. The method inspects the various GVT attributes found in the ACI.- Parameters:
aci
- the ACI to find matching fonts forfontInfo
- the font info instance with FOP's fonts- Returns:
- an array of matching fonts
-
toCSSWeight
-
toStyle
-
dumpAttrs
Dumps the contents of an ACI to System.out. Used for debugging only.- Parameters:
aci
- the ACI to dump
-