Package icyllis.arc3d.core
Class StrikeDesc
java.lang.Object
icyllis.arc3d.core.StrikeDesc
Descriptor of font strike.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
findOrCreateStrike
(StrikeCache cache) void
getDeviceMatrix
(Matrix dst) int
getFlags()
float
void
getLocalMatrix
(Matrix dst) byte
long
float
float
float
float
float
int
float
void
getTotalMatrix
(Matrix dst) int
hashCode()
static float
round_mat_elem
(float x) Return the scalar with only limited fractional precision.updateForMask
(Font font, Paint paint, Matrixc deviceMatrix)
-
Field Details
-
kFrameAndFill_Flag
public static final int kFrameAndFill_Flag- See Also:
-
kLinearMetrics_Flag
public static final int kLinearMetrics_Flag- See Also:
-
-
Constructor Details
-
StrikeDesc
public StrikeDesc() -
StrikeDesc
-
-
Method Details
-
round_mat_elem
public static float round_mat_elem(float x) Return the scalar with only limited fractional precision. Used to consolidate matrices that vary only slightly when we create our key into the font cache, since the font scaler typically returns the same looking results for tiny changes in the matrix. -
update
@Nonnull public StrikeDesc update(@Nonnull Font font, @Nullable Paint paint, @Nonnull Matrixc deviceMatrix) -
updateForMask
@Nonnull public StrikeDesc updateForMask(@Nonnull Font font, @Nonnull Paint paint, @Nonnull Matrixc deviceMatrix) -
getLocalMatrix
-
getDeviceMatrix
-
getTotalMatrix
-
getTextSize
public float getTextSize() -
getPostScaleX
public float getPostScaleX() -
getPostScaleY
public float getPostScaleY() -
getPostShearX
public float getPostShearX() -
getPostShearY
public float getPostShearY() -
getFrameWidth
public float getFrameWidth() -
getMiterLimit
public float getMiterLimit() -
getMaskFormat
public byte getMaskFormat() -
getStrokeJoin
public int getStrokeJoin() -
getFlags
public int getFlags() -
getPathEffect
-
findOrCreateStrike
-
findOrCreateStrike
-
createScalerContext
-
hashCode
public int hashCode() -
equals
-
copy
-
getMemorySize
public long getMemorySize()
-