79603034

Date: 2025-05-02 08:36:42
Score: 2.5
Natty:
Report link

So, after a night of searching and reading, I finally found the solution (I feel stupid about it now):

Text(
    text = reader.value[viewModel.currentPage],
    style = LocalTextStyle.current.copy(
        textAlign = TextAlign.Justify,
        textIndent = TextIndent(
            firstLine = 35.sp,
        ),
        hyphens = Hyphens.Auto,
        lineBreak = LineBreak.Paragraph.copy(
            strategy = LineBreak.Strategy.HighQuality,
            strictness = LineBreak.Strictness.Strict,
            wordBreak = LineBreak.WordBreak.Phrase,
        ),
        fontSize = MaterialTheme.typography.bodyLarge.fontSize,
        lineHeight = MaterialTheme.typography.bodySmall.lineHeight,
        letterSpacing = TextUnit.Unspecified,
    ),
    modifier = Modifier
        .fillMaxWidth(1f)
        .border(1.dp, Color.White),
)

I added letterSpacing = TextUnit.Unspecified and everything now as I want

Solution result

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: 0ero_1ne