Package com.airbnb.lottie.animation
Class LPaint
- java.lang.Object
-
- android.graphics.Paint
-
- com.airbnb.lottie.animation.LPaint
-
public class LPaint extends Paint
Custom paint that doesn't set text locale. It takes ~1ms on initialization and isn't needed so removing it speeds up setComposition.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class android.graphics.Paint
Paint.Align, Paint.Cap, Paint.FontMetrics, Paint.FontMetricsInt, Paint.Join, Paint.Style
-
-
Field Summary
-
Fields inherited from class android.graphics.Paint
ANTI_ALIAS_FLAG, CURSOR_AFTER, CURSOR_AT, CURSOR_AT_OR_AFTER, CURSOR_AT_OR_BEFORE, CURSOR_BEFORE, DEV_KERN_TEXT_FLAG, DITHER_FLAG, EMBEDDED_BITMAP_TEXT_FLAG, END_HYPHEN_EDIT_INSERT_ARMENIAN_HYPHEN, END_HYPHEN_EDIT_INSERT_HYPHEN, END_HYPHEN_EDIT_INSERT_MAQAF, END_HYPHEN_EDIT_INSERT_UCAS_HYPHEN, END_HYPHEN_EDIT_INSERT_ZWJ_AND_HYPHEN, END_HYPHEN_EDIT_NO_EDIT, END_HYPHEN_EDIT_REPLACE_WITH_HYPHEN, FAKE_BOLD_TEXT_FLAG, FILTER_BITMAP_FLAG, HINTING_OFF, HINTING_ON, LINEAR_TEXT_FLAG, START_HYPHEN_EDIT_INSERT_HYPHEN, START_HYPHEN_EDIT_INSERT_ZWJ, START_HYPHEN_EDIT_NO_EDIT, STRIKE_THRU_TEXT_FLAG, SUBPIXEL_TEXT_FLAG, UNDERLINE_TEXT_FLAG
-
-
Constructor Summary
Constructors Constructor Description LPaint()LPaint(int flags)LPaint(int flags, PorterDuff.Mode porterDuffMode)LPaint(PorterDuff.Mode porterDuffMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetTextLocales(LocaleList locales)-
Methods inherited from class android.graphics.Paint
ascent, breakText, breakText, breakText, clearShadowLayer, descent, equalsForTextMeasurement, getAlpha, getBlendMode, getColor, getColorFilter, getColorLong, getEndHyphenEdit, getFillPath, getFlags, getFontFeatureSettings, getFontMetrics, getFontMetrics, getFontMetricsInt, getFontMetricsInt, getFontSpacing, getFontVariationSettings, getHinting, getLetterSpacing, getMaskFilter, getOffsetForAdvance, getOffsetForAdvance, getPathEffect, getRunAdvance, getRunAdvance, getShader, getShadowLayerColor, getShadowLayerColorLong, getShadowLayerDx, getShadowLayerDy, getShadowLayerRadius, getStartHyphenEdit, getStrikeThruPosition, getStrikeThruThickness, getStrokeCap, getStrokeJoin, getStrokeMiter, getStrokeWidth, getStyle, getTextAlign, getTextBounds, getTextBounds, getTextBounds, getTextLocale, getTextLocales, getTextPath, getTextPath, getTextRunAdvances, getTextRunCursor, getTextRunCursor, getTextScaleX, getTextSize, getTextSkewX, getTextWidths, getTextWidths, getTextWidths, getTextWidths, getTypeface, getUnderlinePosition, getUnderlineThickness, getWordSpacing, getXfermode, hasGlyph, isAntiAlias, isDither, isElegantTextHeight, isFakeBoldText, isFilterBitmap, isLinearText, isStrikeThruText, isSubpixelText, isUnderlineText, measureText, measureText, measureText, measureText, reset, set, setAlpha, setAntiAlias, setARGB, setBlendMode, setColor, setColor, setColorFilter, setDither, setElegantTextHeight, setEndHyphenEdit, setFakeBoldText, setFilterBitmap, setFlags, setFontFeatureSettings, setFontVariationSettings, setHinting, setLetterSpacing, setLinearText, setMaskFilter, setPathEffect, setShader, setShadowLayer, setShadowLayer, setStartHyphenEdit, setStrikeThruText, setStrokeCap, setStrokeJoin, setStrokeMiter, setStrokeWidth, setStyle, setSubpixelText, setTextAlign, setTextLocale, setTextScaleX, setTextSize, setTextSkewX, setTypeface, setUnderlineText, setWordSpacing, setXfermode
-
-
-
-
Constructor Detail
-
LPaint
public LPaint()
-
LPaint
public LPaint(int flags)
-
LPaint
public LPaint(PorterDuff.Mode porterDuffMode)
-
LPaint
public LPaint(int flags, PorterDuff.Mode porterDuffMode)
-
-
Method Detail
-
setTextLocales
public void setTextLocales(@NonNull LocaleList locales)- Overrides:
setTextLocalesin classPaint
-
-