public interface FontOptions
Font
or FontUse
implementation to provide
information about how the client wants to use the font.
The font may or may not be able to comply with any or all of the requests.
For example, not all fonts support ligatures, and some that do may not support all of the ligatures requested.Modifier and Type | Field and Description |
---|---|
static FontOptions |
DEFAULT
Immutable implementation that can be used as a default.
|
Modifier and Type | Method and Description |
---|---|
boolean |
anySubsitutionActive()
Indicates whether any substitution features are active.
|
boolean |
isFeatureActive(java.lang.String feature)
Indicates whether a particular OpenType feature is active.
|
boolean |
isKerning()
Indicates whether kerning is active.
|
static final FontOptions DEFAULT
boolean isKerning()
boolean isFeatureActive(java.lang.String feature)
feature
- The feature being queried.
(Developer Note: It is tempting to make this a typesafe enumeration, but, because font creators can create custom
feature tags, it is safer to make this a String).feature
is active.boolean anySubsitutionActive()
isFeatureActive(String)
, but this method is intended to
provide a more efficient means, as implementations can cache results or otherwise enhance performance.This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.