Skip to content

Cursor too high/short for non-alphabetic scripts such as Chinese, emojis, and others. #24182

@GaryQian

Description

@GaryQian

The cursor for text fields is the wrong size/height for the text when typing non-alphabetic/english-like scripts.

This has been confirmed to affect Chinese (and other chinese-like scripts), emojis, Arabic (and arabic-like scripts), but probably impacts more.

Example with Chinese:
textcursorbug

It is interesting to note that highlighting the text works properly and covers the full vertical extent of the text. The cursor positions seems to be calculated from the same properties, but is coming up with a different result.

GetBoxesForRange() also seems to be outputting expected values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: fidelityMatching the OEM platforms bettera: text inputEntering text in a text field or keyboard related problemsa: typographyText rendering, possibly libtxtframeworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions