Closed fujianlian closed 1 year ago
You could you Google Noto Color Emoji font
emojiTextStyle: GoogleFonts.notoColorEmoji()
Hi! This solved the problem but caused other: the big word spacing. Apparently it's not configurable through TextStyle.wordSpacing (I tried some values with no success). Do you have any tip? Thank you!
You could you Google Noto Color Emoji font
emojiTextStyle: GoogleFonts.notoColorEmoji()
Difficult to tell without seeing any code, if you can provide a example code we can take a look.
Hi, I managed to solve this large space problem using the NotoColorEmoji font as fallback font family:
TextFormField(
// ...
style: const TextStyle(
fontFamily: 'Inter',
fontFamilyFallback: ['NotoColorEmoji'],
),
// ...
)
So the Inter font is used with simple text and NotoColorEmoji with emojis
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.3.10, on macOS 13.0.1 22A400 darwin-arm, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 14.1) [✓] Chrome - develop for the web [✓] IntelliJ IDEA Community Edition (version 2022.3.1) [✓] VS Code (version 1.75.1) [!] Proxy Configuration ! NO_PROXY is not set [✓] Connected device (2 available) [✓] HTTP Host Availability