mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2952 Editor | Design | Mention font (#1965)
This commit is contained in:
parent
95e4d92ade
commit
61a868ceb0
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ import android.graphics.Canvas
|
|||
import android.graphics.Color
|
||||
import android.graphics.Paint
|
||||
import android.graphics.Rect
|
||||
import android.graphics.Typeface
|
||||
import android.graphics.drawable.Drawable
|
||||
import android.text.TextPaint
|
||||
import android.text.style.DynamicDrawableSpan
|
||||
|
@ -157,6 +158,8 @@ class MentionSpan constructor(
|
|||
x
|
||||
}
|
||||
|
||||
paint.typeface = Typeface.create(Typeface.DEFAULT, Typeface.NORMAL)
|
||||
paint.isAntiAlias = true
|
||||
canvas.drawText(
|
||||
text.substring(start, end),
|
||||
textStartX,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue