You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently upgraded from 3.10.2 to 3.13.6, and all my text disappeared. I found the reason is that "text_scale_factor" is set to zero after digging hard through Skia font rendering code.
Before upgrading to 3.13, there's no text_scale_factor. After upgrading to 3.13, text_scale_factor will default to zero if unspecified, and this will cause all text disappear.
I suggest add some check in the embedder, and if text_scale_factor is zero, then set it to 1 or print a warning, to avoid this kind of mistakes. Also we can set text_scale_factor to 1 in the constructor of flutter::FlutterViewController::ViewProperties.
The text was updated successfully, but these errors were encountered:
Related commit: c5a7852
I recently upgraded from 3.10.2 to 3.13.6, and all my text disappeared. I found the reason is that "text_scale_factor" is set to zero after digging hard through Skia font rendering code.
I use a custom
main
function in my app:Before upgrading to 3.13, there's no
text_scale_factor
. After upgrading to 3.13, text_scale_factor will default to zero if unspecified, and this will cause all text disappear.I suggest add some check in the embedder, and if
text_scale_factor
is zero, then set it to 1 or print a warning, to avoid this kind of mistakes. Also we can settext_scale_factor
to 1 in the constructor offlutter::FlutterViewController::ViewProperties
.The text was updated successfully, but these errors were encountered: