From bdeb719d8fd0dd008915a68c703d74322cda44cd Mon Sep 17 00:00:00 2001 From: Horizon <1308311472@qq.com> Date: Sun, 7 Feb 2021 17:30:51 +0800 Subject: [PATCH] fix line feed --- .../java/com/watermark/androidwm_light/utils/BitmapUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/androidwm-light/src/main/java/com/watermark/androidwm_light/utils/BitmapUtils.java b/androidwm-light/src/main/java/com/watermark/androidwm_light/utils/BitmapUtils.java index c0ee1f2..09605a4 100644 --- a/androidwm-light/src/main/java/com/watermark/androidwm_light/utils/BitmapUtils.java +++ b/androidwm-light/src/main/java/com/watermark/androidwm_light/utils/BitmapUtils.java @@ -97,7 +97,7 @@ public static Bitmap textAsBitmap(Context context, WatermarkText watermarkText) } StaticLayout staticLayout = new StaticLayout(watermarkText.getText(), 0, watermarkText.getText().length(), - watermarkPaint, mTextMaxWidth, android.text.Layout.Alignment.ALIGN_NORMAL, 2.0f, + watermarkPaint, mTextMaxWidth, android.text.Layout.Alignment.ALIGN_NORMAL, 1.0f, 2.0f, false); int lineCount = staticLayout.getLineCount();