Package org.apache.fop.svg
Class ACIUtils
- java.lang.Object
-
- org.apache.fop.svg.ACIUtils
-
public final class ACIUtils extends java.lang.Object
Utilities for java.text.AttributedCharacterIterator.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.commons.logging.Log
LOG
the logger for this class
-
Constructor Summary
Constructors Modifier Constructor Description private
ACIUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
dumpAttrs(java.text.AttributedCharacterIterator aci)
Dumps the contents of an ACI to System.out.static Font[]
findFontsForBatikACI(java.text.AttributedCharacterIterator aci, FontInfo fontInfo)
Tries to find matching fonts in FOP'sFontInfo
instance for fonts used by Apache Batik.static int
toCSSWeight(java.lang.Float weight)
static java.lang.String
toStyle(java.lang.Float posture)
-
-
-
Method Detail
-
findFontsForBatikACI
public static Font[] findFontsForBatikACI(java.text.AttributedCharacterIterator aci, FontInfo fontInfo)
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
public static int toCSSWeight(java.lang.Float weight)
-
toStyle
public static java.lang.String toStyle(java.lang.Float posture)
-
dumpAttrs
public static void dumpAttrs(java.text.AttributedCharacterIterator aci)
Dumps the contents of an ACI to System.out. Used for debugging only.- Parameters:
aci
- the ACI to dump
-
-