Repository: flutter
Issue: Flutter Update Rendering Issue with Custom Arabic Font
Labels: framework,a: internationalization,a: typography,has reproducible steps,P2,team-engine,triaged-engine,found in release: 3.19,found in release: 3.20

### Steps to reproduce


1. Apply Al-Kanz fonts to the text

2. I have attached the expected and generated result image.

Before the update, I successfully implemented a custom Arabic font in my Flutter application, and it rendered as expected. However, after the recent update, I've noticed that the Arabic text is not being rendered correctly with the custom font.

I have attached images showcasing the expected result (before the update) and the generated result (after the update) for comparison. As you can see, there's a noticeable difference in how the Arabic text appears, and it's not rendering in the expected way.

I've tried to troubleshoot the issue by checking the font file, ensuring proper configuration in my Flutter project, and exploring potential changes in the update documentation, but I haven't been able to resolve the problem.

Could you please guide how to address this issue or any potential workarounds? I rely heavily on this feature for my application, and any assistance you could offer would be greatly appreciated.



[Al-Kanz.zip](https://github.com/flutter/flutter/files/14376305/Al-Kanz.zip)


### Expected results

<img width="216" alt="image" src="https://github.com/flutter/flutter/assets/66951720/27df879a-f9ef-4646-b8a5-670045137e74">

### Actual results

<img width="224" alt="image" src="https://github.com/flutter/flutter/assets/66951720/068c5e46-a131-4308-98c9-76fc382798fc">


### Code sample

<details open><summary>Code sample</summary>

```dart
Column(
          children: [
            Divider(),
            Text(
              'صص',
              style: TextStyle(fontFamily: 'Al-Kanz'),
            ),
            Divider(),
            Text(
              'طط',
              style: TextStyle(fontFamily: 'Al-Kanz'),
            ),
            Divider(),
            Text(
              'حح',
              style: TextStyle(fontFamily: 'Al-Kanz'),
            ),
            Divider(),
            Text(
              'ضض',
              style: TextStyle(fontFamily: 'Al-Kanz'),
            ),
            Divider(),
            Text(
              'ثث',
              style: TextStyle(fontFamily: 'Al-Kanz'),
            ),
            Divider()
          ],
        ),
```
```dart
pubspec.yaml
  fonts:
    - family: AlKanz
      fonts:
        - asset: assets/Al-Kanz.ttf

```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>
If you use the fonts in MS Word it should look like this
<img width="522" alt="image" src="https://github.com/flutter/flutter/assets/66951720/8d299470-cbc2-4265-a2c6-c4b732ff8142">


</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[√] Flutter (Channel stable, 3.19.0, on Microsoft Windows [Version 10.0.22631.3155], locale en-IN)
    • Flutter version 3.19.0 on channel stable at C:\Personal_Data\Installations\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision bae5e49bc2 (9 days ago), 2024-02-13 17:46:18 -0800
    • Engine revision 04817c99c9
    • Dart version 3.3.0
    • DevTools version 2.31.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\shabb\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.1)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.7.34009.444
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2023.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)

[√] VS Code (version 1.86.2)
    • VS Code at C:\Users\shabb\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.82.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.3155]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 122.0.6261.57
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 121.0.2277.128

[√] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>