Skip to content

Some unicode characters are not properly rendered when paired with Chinese text #110557

@reamal

Description

@reamal

When the text start with "", the text displays an error.
Who can tell me how to fix it, thank you.

sample code
import 'package:flutter/cupertino.dart';

class TextScreenWidget extends StatelessWidget {
  const TextScreenWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisSize: MainAxisSize.min,
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        getText("8月31日wo men"),
        getText(" 8月31日wo men"),
        getRichText("8月31日wo men"),
        getRichText(" 8月31日wo men"),
        getRichText("🐱 8月31日wo men"),
      ],
    );
  }

  Widget getText(String t) {
    return Text(t, style: const TextStyle(color: Color(0xff000000)));
  }

  Widget getRichText(String t) {
    return RichText(
      text: TextSpan(text: t, style: const TextStyle(color: Color(0xff000000))),
    );
  }
}

when displaying in ios devices (iphone 7 / ios 13.6.1)

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.5, on macOS 11.6 20G165 darwin-arm, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.70.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: internationalizationSupporting other languages or locales. (aka i18n)a: typographyText rendering, possibly libtxtc: renderingUI glitches reported at the engine/skia or impeller rendering levelengineflutter/engine related. See also e: labels.found in release: 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions