Hey folks, is anyone running into strange text ren...
# compose-web
m
Hey folks, is anyone running into strange text rendering issues with Text clipping on canvas?
TextOverflow.Clip
seems broken - sometimes blank, sometimes garbage text. Manually clipping (
TextOverflow.Visible
with a wrapping box that has
Modifier._clipToBounds_()
) sometimes works.
TextOverflow.Ellipsis
seems functional.
I'm running Compose 1.4.0. Here's an example showing the clipping behaviors side-by-side at various widths. (Gray has no clipping, Blue is
TextOverflow.Clip
and Red is
TextOverflow.Ellipsis
both clipped by setting 1 line and fixed width).
If I rendering only one the smallest of the three widths above,
TextOverflip.Clip
seems to generate garbage text. The other, larger widths rendered this way are blank 😕
To find a shorterm fix to use Clip, I attempted to wrap
Text
with
TextOverflip.Visible
with
Box(Modifier.clipToBounds())
which works only sometimes - most of the time it's blank.
None of these issues show up on Desktop or Android
o
Seems to be a bug. Could you please file an issue at gihub with all your findings?
m