Package 

Class 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.

    • Method Summary

      Modifier and Type Method Description
      void setTextLocales(@NonNull() LocaleList locales)
      void setAlpha(int alpha) Overrides setAlpha to avoidunnecessary ColorSpace$Named[] allocations when calling this method in Android 29 or lower.
      • Methods inherited from class android.graphics.Paint

        ascent, breakText, clearShadowLayer, descent, equalsForTextMeasurement, getAlpha, getBlendMode, getColor, getColorFilter, getColorLong, getEndHyphenEdit, getFillPath, getFlags, getFontFeatureSettings, getFontMetrics, getFontMetrics, getFontMetricsForLocale, getFontMetricsInt, getFontMetricsInt, getFontMetricsInt, getFontMetricsIntForLocale, getFontSpacing, getFontVariationSettings, getHinting, getLetterSpacing, getMaskFilter, getOffsetForAdvance, getPathEffect, getRunAdvance, getRunCharacterAdvance, getShader, getShadowLayerColor, getShadowLayerColorLong, getShadowLayerDx, getShadowLayerDy, getShadowLayerRadius, getStartHyphenEdit, getStrikeThruPosition, getStrikeThruThickness, getStrokeCap, getStrokeJoin, getStrokeMiter, getStrokeWidth, getStyle, getTextAlign, getTextBounds, getTextLocale, getTextLocales, getTextPath, getTextRunAdvances, getTextRunCursor, getTextScaleX, getTextSize, getTextSkewX, getTextWidths, getTypeface, getUnderlinePosition, getUnderlineThickness, getWordSpacing, getXfermode, hasGlyph, isAntiAlias, isDither, isElegantTextHeight, isFakeBoldText, isFilterBitmap, isLinearText, isStrikeThruText, isSubpixelText, isUnderlineText, measureText, reset, set, setARGB, setAlpha, setAntiAlias, setBlendMode, setColor, setColorFilter, setDither, setElegantTextHeight, setEndHyphenEdit, setFakeBoldText, setFilterBitmap, setFlags, setFontFeatureSettings, setFontVariationSettings, setHinting, setLetterSpacing, setLinearText, setMaskFilter, setPathEffect, setShader, setShadowLayer, setStartHyphenEdit, setStrikeThruText, setStrokeCap, setStrokeJoin, setStrokeMiter, setStrokeWidth, setStyle, setSubpixelText, setTextAlign, setTextLocale, setTextLocales, setTextScaleX, setTextSize, setTextSkewX, setTypeface, setUnderlineText, setWordSpacing, setXfermode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait