Package com.adobe.xfa.font
Class FontService
- java.lang.Object
-
- com.adobe.xfa.font.FontService
-
public class FontService extends java.lang.Object
A service class to handle all font related actions.It provides a number of convenience methods for accessing fonts. It provides operations to get a comprehensive list of fonts, metrics, and other font related information.
-
-
Field Summary
Fields Modifier and Type Field Description static int
BIG_5
static int
ENCODING_NONE
static int
FONT_SPECIFIC
static int
GBK
static int
HKSCS_BIG5
static int
IBM_1258
static int
IBM_874
static int
IDENTITY
static int
ISO_8859_1
static int
ISO_8859_2
static int
ISO_8859_5
static int
ISO_8859_6
static int
ISO_8859_7
static int
ISO_8859_8
static int
ISO_8859_9
static int
KSC_5601
static int
MAC_ROMAN
static int
SHIFT_JIS
static int
SHIFT_JIS_83
static int
UCS_2
static int
UTF_16
static int
UTF_8
-
Constructor Summary
Constructors Constructor Description FontService(java.lang.String fontPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FontInstance
getDefaultFontInstance()
static int
getEncoding(java.lang.String sEncoding)
FontItem
reconcile(FontInfo key)
FontInstance
reconcile(FontInfo info, UnitSpan size, double horizontalScale, double verticalScale)
java.lang.String
toString()
-
-
-
Field Detail
-
ISO_8859_1
public static final int ISO_8859_1
- See Also:
- Constant Field Values
-
ISO_8859_2
public static final int ISO_8859_2
- See Also:
- Constant Field Values
-
ISO_8859_5
public static final int ISO_8859_5
- See Also:
- Constant Field Values
-
ISO_8859_6
public static final int ISO_8859_6
- See Also:
- Constant Field Values
-
ISO_8859_7
public static final int ISO_8859_7
- See Also:
- Constant Field Values
-
ISO_8859_8
public static final int ISO_8859_8
- See Also:
- Constant Field Values
-
ISO_8859_9
public static final int ISO_8859_9
- See Also:
- Constant Field Values
-
IBM_874
public static final int IBM_874
- See Also:
- Constant Field Values
-
IBM_1258
public static final int IBM_1258
- See Also:
- Constant Field Values
-
SHIFT_JIS
public static final int SHIFT_JIS
- See Also:
- Constant Field Values
-
SHIFT_JIS_83
public static final int SHIFT_JIS_83
- See Also:
- Constant Field Values
-
KSC_5601
public static final int KSC_5601
- See Also:
- Constant Field Values
-
BIG_5
public static final int BIG_5
- See Also:
- Constant Field Values
-
HKSCS_BIG5
public static final int HKSCS_BIG5
- See Also:
- Constant Field Values
-
GBK
public static final int GBK
- See Also:
- Constant Field Values
-
FONT_SPECIFIC
public static final int FONT_SPECIFIC
- See Also:
- Constant Field Values
-
UTF_8
public static final int UTF_8
- See Also:
- Constant Field Values
-
UTF_16
public static final int UTF_16
- See Also:
- Constant Field Values
-
UCS_2
public static final int UCS_2
- See Also:
- Constant Field Values
-
IDENTITY
public static final int IDENTITY
- See Also:
- Constant Field Values
-
MAC_ROMAN
public static final int MAC_ROMAN
- See Also:
- Constant Field Values
-
ENCODING_NONE
public static final int ENCODING_NONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
reconcile
public FontInstance reconcile(FontInfo info, UnitSpan size, double horizontalScale, double verticalScale)
-
getEncoding
public static int getEncoding(java.lang.String sEncoding)
-
getDefaultFontInstance
public FontInstance getDefaultFontInstance()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-