FontEnvironment

Inheritance: java.lang.Object

public class FontEnvironment

Provides information about the current environment and platform.

Methods

MethodDescription
getCurrent()Gets current environment.
getCurrentPlatformId()Gets current platform id.
getStrictness()Some Fonts may contain unexpected data, non-specified features, or may be roughly cropped.
setStrictness(FontEnvironment.ParsingStrictness value)Some Fonts may contain unexpected data, non-specified features, or may be roughly cropped.
getFontSpecificEncodings()Stores specific encodings for consumer-aware Fonts.

getCurrent()

public static FontEnvironment getCurrent()

Gets current environment.

Returns: FontEnvironment - Current environment.

getCurrentPlatformId()

public int getCurrentPlatformId()

Gets current platform id.

Returns: int - Current platform id.

getStrictness()

public FontEnvironment.ParsingStrictness getStrictness()

Some Fonts may contain unexpected data, non-specified features, or may be roughly cropped. Tolerant setting is recommended for consumers who want to open any font regardless possible Font’s inadequacy. Font internal structures are not guaranteed to be consistent. Strict setting is recommended for consumers who want to open mostly valid and solid Fonts.

Returns: ParsingStrictness - Strictness.

setStrictness(FontEnvironment.ParsingStrictness value)

public void setStrictness(FontEnvironment.ParsingStrictness value)

Some Fonts may contain unexpected data, non-specified features, or may be roughly cropped. Tolerant setting is recommended for consumers who want to open any font regardless possible Font’s inadequacy. Font internal structures are not guaranteed to be consistent. Strict setting is recommended for consumers who want to open mostly valid and solid Fonts.

Parameters:

ParameterTypeDescription
valueParsingStrictnessStrictness.

getFontSpecificEncodings()

public FontSpecificEncodings getFontSpecificEncodings()

Stores specific encodings for consumer-aware Fonts. For example, PDF uses Adobe Symbol and ZapfDingbats specific encodings.

Returns: FontSpecificEncodings - Specific encodings for consumer-aware Fonts.