Class ShapingOptions


  • public class ShapingOptions
    extends java.lang.Object
    • Field Detail

      • _fontMgr

        @Internal
        @Nullable
        public final @Nullable FontMgr _fontMgr
      • _features

        @Internal
        @Nullable
        public final @Nullable FontFeature[] _features
      • _leftToRight

        @Internal
        public final boolean _leftToRight
      • _approximateSpaces

        @Internal
        public final boolean _approximateSpaces
        If enabled, fallback font runs will not be broken by whitespace from original font
      • _approximatePunctuation

        @Internal
        public final boolean _approximatePunctuation
        If enabled, fallback font runs will not be broken by punctuation from original font
    • Constructor Detail

      • ShapingOptions

        public ShapingOptions​(@Nullable
                              @Nullable FontMgr fontMgr,
                              @Nullable
                              @Nullable FontFeature[] features,
                              boolean leftToRight,
                              boolean approximateSpaces,
                              boolean approximatePunctuation)
    • Method Detail

      • withFeatures

        @NotNull
        public @NotNull ShapingOptions withFeatures​(@Nullable
                                                    @Nullable java.lang.String featuresString)
      • getFontMgr

        @Nullable
        public @Nullable FontMgr getFontMgr()
      • getFeatures

        @Nullable
        public @Nullable FontFeature[] getFeatures()
      • isLeftToRight

        public boolean isLeftToRight()
      • isApproximateSpaces

        public boolean isApproximateSpaces()
        If enabled, fallback font runs will not be broken by whitespace from original font
      • isApproximatePunctuation

        public boolean isApproximatePunctuation()
        If enabled, fallback font runs will not be broken by punctuation from original font
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • withFontMgr

        public ShapingOptions withFontMgr​(@Nullable
                                          @Nullable FontMgr _fontMgr)
        Returns:
        this.
      • withLeftToRight

        public ShapingOptions withLeftToRight​(boolean _leftToRight)
        Returns:
        this.
      • withApproximateSpaces

        public ShapingOptions withApproximateSpaces​(boolean _approximateSpaces)
        If enabled, fallback font runs will not be broken by whitespace from original font
        Returns:
        this.
      • withApproximatePunctuation

        public ShapingOptions withApproximatePunctuation​(boolean _approximatePunctuation)
        If enabled, fallback font runs will not be broken by punctuation from original font
        Returns:
        this.