com.aspose.font

Interfaces

Classes

Enums

Exceptions

com.aspose.font

Class FontEnvironment



  • public class FontEnvironment
    extends Object

    Provides information about the current environment and platform.

    • Method Detail

      • getCurrent

        public static FontEnvironment getCurrent()

        Gets current environment.

        Returns:
        Current environment.
      • getCurrentPlatformId

        public int getCurrentPlatformId()

        Gets current platform id.

        Returns:
        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:
        Strictness.
      • setStrictness

        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:
        value - Strictness.
      • getFontSpecificEncodings

        public FontSpecificEncodings getFontSpecificEncodings()

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

        Returns:
        Specific encodings for consumer-aware Fonts.