Re:Flutter is the most popular cross-platform mobile SDK
by mahkoh on Tuesday February 22, 2022 @07:25AM
(#30427029)
>- Flutter widgets can be made pixel perfect replicas of native UI components.
How can I make flutter use native font rendering? I've played around with it a bit and fonts look completely off, don't respect my systems hinting settings, etc.
Re:Flutter is the most popular cross-platform mobile SDK
by Comevius on Tuesday February 22, 2022 @09:48AM
(#30428552)
Low PPI displays require subpixel antialiasing which is not yet supported.
Re:Flutter is the most popular cross-platform mobile SDK
by mahkoh on Tuesday February 22, 2022 @10:35AM
(#30429181)
That is unrelated to my question. I'm using hinting and have everything sub-pixel-related disabled. If flutter does not support this, then flutter cannot look native.
Re:Flutter is the most popular cross-platform mobile SDK
by Comevius on Tuesday February 22, 2022 @01:39PM
(#30431700)
Flutter uses Skia, Harfbuzz and FreeType under the hood. The last two is used by almost every other software for text shaping and rasterization.
You should open an issue if your font configuration is not applied, although on Android, iOS and macOS font hinting is not relevant, and I think on Linux fontconfig is used. I don't know about Windows.
Re:Flutter is the most popular cross-platform mobile SDK
by JofArnold on Tuesday February 22, 2022 @08:07AM
(#30427432)
Small correction: RN uses their own custom JS engine Hermes.
Re:Flutter is the most popular cross-platform mobile SDK
by Comevius on Tuesday February 22, 2022 @09:35AM
(#30428369)
Thanks for the correction, haven't kept up with React Native for a while. It indeed uses Facebook's own JS engine.
https://reactnative.dev/blog/2021/10/26/toward-hermes-being-...
- Supporting older platforms is much easier with Flutter.
- You can use native UI components with Flutter if you want to, and mix them with Flutter widgets.
- Flutter has a tiny and fast runtime, React Native runs on Safari or Chrome. Flutter works great on embedded platforms too, such as IoT devices.
- Dart is similar to JavaScript, with the same runtime behavior, though obviously you can't use existing JavaScript libraries outside of the browser. You can use many WASM ones though.