public interface PDFFontSet extends Serializable
| Modifier and Type | Field and Description |
|---|---|
static Locale |
ARABIC |
static Locale |
HEBREW |
static Locale |
THAI |
| Modifier and Type | Method and Description |
|---|---|
void |
addFallbackFont(Locale locale,
Font font)
Add a given
Font to the
PDFFontSet for use as a fallback font for the given locale. |
void |
addFallbackFont(Locale locale,
Font[] fonts)
Add an array of
Font objects to the
PDFFontSet for use as a fallback font for the given locale. |
void |
addFont(Font font)
Add a given
Font to the
PDFFontSet for use in font lookup. |
void |
addFont(Font[] fonts)
Add an array of
Font objects to the
PDFFontSet for use in font lookup. |
void |
addFont(Font[] fonts,
Platform platForm,
ULocale locale)
Add an array of
Font objects to the
PDFFontSet for use in font lookup. |
void |
addFont(Font font,
Platform platForm,
ULocale locale)
Add a given
Font to the
PDFFontSet for use in font lookup. |
void |
addFont(Font font,
PostscriptFontDescription[] psDescriptions,
CSS20FontDescription[] cssDescriptions)
Add a given
Font to the
PDFFontSet. |
FallbackFontSet |
getFallbackFontSet()
Returns the set of fallback fonts added to this font set.
|
boolean |
hasRootFallback()
Returns true if there is a "final fallback" font installed in ULocale.ROOT.
|
void |
setGenericFontFamilyName(CSS20GenericFontFamily family,
String[] replacements)
An array of font family names to use as replacements for the generic CSS font family names.
|
void |
setIgnoreFontLoadingErrors(boolean ignoreFontLoadingErrors)
Sets if any error while adding font to fontset should be ignored
|
static final Locale ARABIC
static final Locale THAI
static final Locale HEBREW
boolean hasRootFallback()
throws PDFFontException
PDFFontExceptionvoid addFont(Font font) throws PDFFontException
Font to the
PDFFontSet for use in font lookup.
There is an inherent priority ordering based on the order that Font
objects are added with earlier added fonts having higher priority.
The font shall be added for default locale available and windows platform. If clients want to specify
locale and platform then they should call addFont(Font, Platform, ULocale).font - a non-null valid Font objectPDFFontExceptionvoid addFont(Font font, Platform platForm, ULocale locale) throws PDFFontException
Font to the
PDFFontSet for use in font lookup.
There is an inherent priority ordering based on the order that Font
objects are added with earlier added fonts having higher priority.
The font shall be added for locale and platform specified by clients. If either of the platform and
locale are passed as null then defaults shall be used.font - a non-null valid Font objectPDFFontExceptionvoid addFont(Font font, PostscriptFontDescription[] psDescriptions, CSS20FontDescription[] cssDescriptions) throws PDFFontException
Font to the
PDFFontSet. The provided PostScript and CSS font descriptions
will be used during font lookup. Either array of descriptions can be null.
If the Font's native font descriptions
are also desired, both this API and other addFont variants
can be called with the same Font instance.
There is an inherent priority ordering based on the order that Font
objects are added with earlier added fonts having higher priority.PDFFontExceptionvoid addFont(Font[] fonts) throws PDFFontException
Font objects to the
PDFFontSet for use in font lookup.
There is an inherent priority ordering based on the order that Font
objects are added with earlier added fonts having higher priority.
These fonts shall be added for default locale available and windows platform. If clients want to specify
locale and platform then they should call addFont(Font[], Platform, ULocale).fonts - a non-null array of non-null valid Font objectsPDFFontExceptionvoid addFont(Font[] fonts, Platform platForm, ULocale locale) throws PDFFontException
Font objects to the
PDFFontSet for use in font lookup.
There is an inherent priority ordering based on the order that Font
objects are added with earlier added fonts having higher priority.
The font shall be added for locale and platform specified by clients. If either of the platform and
locale are passed as null then defaults shall be used.fonts - a non-null array of non-null valid Font objectsPDFFontExceptionvoid addFallbackFont(Locale locale, Font font) throws PDFFontException
Font to the
PDFFontSet for use as a fallback font for the given locale.
There is an inherent priority ordering based on the order that Font
objects are added with earlier added fonts having higher priority.locale - the locale for which this fallback font should be usedfont - a non-null valid Font objectPDFFontExceptionvoid addFallbackFont(Locale locale, Font[] fonts) throws PDFFontException
Font objects to the
PDFFontSet for use as a fallback font for the given locale.
There is an inherent priority ordering based on the order that Font
objects are added with earlier added fonts having higher priority.locale - the locale for which this fallback font should be usedfonts - a non-null array of non-null valid Font objectsPDFFontExceptionvoid setGenericFontFamilyName(CSS20GenericFontFamily family, String[] replacements) throws PDFFontException
family - replacements - a non-null array of non-null valid String objectsPDFFontExceptionCSS20GenericFontFamilyFallbackFontSet getFallbackFontSet() throws PDFFontException
PDFFontExceptionvoid setIgnoreFontLoadingErrors(boolean ignoreFontLoadingErrors)
ignoreFontLoadingErrors - Copyright © 2010 - 2020 Adobe. All Rights Reserved