Skip to content

Commit a0fd7f8

Browse files
committed
fix: Some properties of external custom TextAlign will be modified internally
1 parent 9d51bb9 commit a0fd7f8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎library/src/main/java/com/opensource/svgaplayer/drawer/SVGACanvasDrawer.kt‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,6 @@ internal class SVGACanvasDrawer(videoItem: SVGAVideoEntity, val dynamicItem: SVG
244244
val drawRect = Rect(0, 0, drawingBitmap.width, drawingBitmap.height)
245245
val textCanvas = Canvas(textBitmap)
246246
drawingTextPaint.isAntiAlias = true
247-
drawingTextPaint.setStyle(Paint.Style.FILL);
248-
drawingTextPaint.setTextAlign(Paint.Align.CENTER);
249247
val fontMetrics = drawingTextPaint.getFontMetrics();
250248
val top = fontMetrics.top
251249
val bottom = fontMetrics.bottom

0 commit comments

Comments
 (0)