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
running this on mac os is fine (the text shows fine for both the Arabic and english text) but running it through 'flutter-pi' causes the Arabic text to be shown as rectangles, looking at the output of the print statements I have in the build method, you see that the fontFamily and fontFamilyFallback are being set to null when you set bodyText2 to something instead of leaving it unchanged, in macos somehow the system still shows the character even when the fontFamily is null but in the raspberry pi it causes the characters to be known.
The text was updated successfully, but these errors were encountered:
You need to use custom font, it is probably that flutter engine uses some default font depending on your locale or available system fonts with no option for extended unicode symbols.
Hence best approach is bundling your own fonts with application.
You can also set system locale to arabic one and see if flutter engine picks up better fonts (I think arabic would be ar_AE.utf8)
To show the problem run this code:
running this on mac os is fine (the text shows fine for both the Arabic and english text) but running it through 'flutter-pi' causes the Arabic text to be shown as rectangles, looking at the output of the print statements I have in the build method, you see that the
fontFamily
andfontFamilyFallback
are being set to null when you setbodyText2
to something instead of leaving it unchanged, in macos somehow the system still shows the character even when thefontFamily
is null but in the raspberry pi it causes the characters to be known.The text was updated successfully, but these errors were encountered: