enighma
07/14/2025, 9:05 PMA
but I don't want any of the white space that is there for other letters.
In my real example I'm using unicode characters, all of which is of the same size, but I don't want the whitespace I'm getting
I.e. can I draw the glyph itself somehow.yschimke
07/14/2025, 9:57 PMenighma
07/14/2025, 10:29 PMBogdan Vladoiu Lbs
07/15/2025, 8:43 PMBogdan Vladoiu Lbs
07/15/2025, 8:44 PM@Composable
fun GlyphCanvas() {
Canvas(Modifier.fillMaxSize()) {
drawIntoCanvas { canvas ->
val paint = Paint().asFrameworkPaint().apply {
textSize = 72f
color = android.graphics.Color.BLUE
isAntiAlias = true
}
canvas.nativeCanvas.drawText("☕ ", 100f, 200f, paint)
}
}enighma
07/15/2025, 8:49 PMenighma
07/15/2025, 9:02 PM