Skip to content

[Fabric] Multiline TextInput calculates the number of lines incorrectly and doesn't show fontfamily/letterSpacing #14380

Open

Description

Problem Description

Originally from #14357

  • Multiline calculates the number of lines incorrectly with varying characters, which becomes more noticeable when the text is long.
    • Properties like letterSpacing seem to be accounted for in determining number of lines, but doesn't show visually
    • ^^ Same for other font families - it seems to realize it's a different font family when trying to calculate number of lines/height, but visually it does not show the passed-in font
    • If a defaultValue (and I think value too) is set, that seems to be taken into account for multiline wrapping, but if it's removed it seems to treat it like that text still exists (2nd video)
screen-capture.11.webm

Activity

  1. added
    Needs: Triage 🔍
    on Feb 27, 2025
  2. changed the title [-][Fabric] Multiline TextInput calculates the number of lines incorrectly[/-] [+][Fabric] Multiline TextInput calculates the number of lines incorrectly and doesn't show fontfamily/letterSpacing[/+] on Feb 27, 2025
  3. added
    New Architecture
    on Feb 27, 2025
  4. chrisglein commented on Feb 27, 2025

    @chrisglein
    Member

    Possibly a mismatch between Text or TextInput. If they are implemented inequally there will be differences in layout. So for example if some spacing value isn't implemented on Text (#13115) it's going to be a problem.

    Chiara Mooney (@chiaramooney) can you link to the known issues in fontFamily/letterSpacing?

  5. added
    Area: Fabric
    and removed
    Needs: Triage 🔍
    on Feb 27, 2025
  6. added
    Workstream: Component Parity
    on Feb 27, 2025
  7. anupriya13 commented on Apr 7, 2025

    @anupriya13
    Contributor

    Letterspacing: #14460
    FontFamily: #14495

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: FabricArea: LayoutArea: TextInputNew ArchitectureWorkstream: Component Paritybug

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions