rob42
01/18/2024, 10:11 PMBasicText(
modifier = Modifier.background(Color.Green.copy(alpha = 0.3f)),
text = "0",
style = TextStyle(fontSize = 48.sp)
)
Kirill Grouchnikov
01/18/2024, 11:29 PMKirill Grouchnikov
01/18/2024, 11:30 PMrob42
01/18/2024, 11:42 PMrob42
01/18/2024, 11:43 PMIvan Matkov
01/23/2024, 11:03 AMIvan Matkov
01/23/2024, 11:03 AM.wrapContentHeight(
align = Alignment.CenterVertically, // Default value
unbounded = true // Makes sense if the size less than text
),
Ivan Matkov
01/23/2024, 11:06 AMIt's not centered on x-height, nor ascender-descender heightIt's HIGHLY depends on metrics from specific fonts. Centering on x-height is not supported, but ascender-descender height IS allied here. It's just picked up from the font where it can be in "visually unexpected"
Ivan Matkov
01/23/2024, 11:08 AMrob42
02/23/2024, 8:44 PMThe issue is Segoe UI has a huge code page covering most languages and has made a effort to make the accents on characters readable even at small font sizes.They added a workaround specifically for SegoeUI -- and I think compose desktop should consider doing the same, since this is the default font used on Windows.