Package io.github.humbleui.skija.shaper
Class ShapingOptions
- java.lang.Object
-
- io.github.humbleui.skija.shaper.ShapingOptions
-
public class ShapingOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description boolean_approximatePunctuationIf enabled, fallback font runs will not be broken by punctuation from original fontboolean_approximateSpacesIf enabled, fallback font runs will not be broken by whitespace from original font@Nullable FontFeature[]_features@Nullable FontMgr_fontMgrboolean_leftToRightstatic ShapingOptionsDEFAULT
-
Constructor Summary
Constructors Constructor Description ShapingOptions(@Nullable FontMgr fontMgr, @Nullable FontFeature[] features, boolean leftToRight, boolean approximateSpaces, boolean approximatePunctuation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)@Nullable FontFeature[]getFeatures()@Nullable FontMgrgetFontMgr()inthashCode()booleanisApproximatePunctuation()If enabled, fallback font runs will not be broken by punctuation from original fontbooleanisApproximateSpaces()If enabled, fallback font runs will not be broken by whitespace from original fontbooleanisLeftToRight()java.lang.StringtoString()ShapingOptionswithApproximatePunctuation(boolean _approximatePunctuation)If enabled, fallback font runs will not be broken by punctuation from original fontShapingOptionswithApproximateSpaces(boolean _approximateSpaces)If enabled, fallback font runs will not be broken by whitespace from original font@NotNull ShapingOptionswithFeatures(@Nullable FontFeature[] features)@NotNull ShapingOptionswithFeatures(@Nullable java.lang.String featuresString)ShapingOptionswithFontMgr(@Nullable FontMgr _fontMgr)ShapingOptionswithLeftToRight(boolean _leftToRight)
-
-
-
Field Detail
-
DEFAULT
public static final ShapingOptions DEFAULT
-
_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 FontFeature[] features)
-
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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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.
-
-