Repository: flutter
Issue: [web] Text height measurements are off for some languages
Labels: a: typography,platform-web,e: web_html,P2,team-web,triaged-web

| Flutter web | macOS |
|-|-|
| ![image](https://user-images.githubusercontent.com/1278212/171678477-2695bc22-b49d-4ff4-afb8-249ca0d3ee77.png) | ![image](https://user-images.githubusercontent.com/1278212/171678546-d2bac26a-af36-4d1b-a79a-e344a5d82adb.png) |

Notice how the height of Chinese and Balinese characters isn't measured correctly, causing the two lines of text to overlap.

<details>

<summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

const double fontSize = 25;

class MyApp extends StatelessWidget {
  MyApp();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Scaffold(
        body: Center(
          child: RichText(
            text: TextSpan(
              text: '',
              style: TextStyle(
                fontSize: fontSize,
                color: Colors.pinkAccent,
              ),
              children: [
                TextSpan(
                    text: 'hello',
                    style: TextStyle(
                        background: Paint()..color = Colors.black)),
                TextSpan(text: ' '),
                TextSpan(
                    text: '᭛',
                    style: TextStyle(
                        background: Paint()..color = Colors.black)),
                TextSpan(text: ' '),
                TextSpan(
                    text: 'world!\n',
                    style: TextStyle(
                        background: Paint()..color = Colors.black)),
                TextSpan(
                    text: 'hello',
                    style: TextStyle(
                        background: Paint()..color = Colors.purple)),
                TextSpan(text: ' '),
                TextSpan(
                    text: '语音回',
                    style: TextStyle(
                        background: Paint()..color = Colors.purple)),
                TextSpan(text: ' '),
                TextSpan(
                    text: 'world!\n',
                    style: TextStyle(
                        background: Paint()..color = Colors.purple)),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
```
</details>

<details>
<summary>flutter doctor -v</summary>

```
[✓] Flutter (Channel master, 3.1.0-0.0.pre.745, on macOS 12.4 21F79 darwin-arm, locale en-US)
    • Flutter version 3.1.0-0.0.pre.745 at /Users/mdebbar/github/flutter
    • Upstream repository git@github.com:flutter/flutter.git
    • Framework revision c248854d17 (2 weeks ago), 2022-05-16 23:57:08 -0400
    • Engine revision fce741dd83
    • Dart version 2.18.0 (build 2.18.0-120.0.dev)
    • DevTools version 2.13.1

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] VS Code (version 1.67.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.42.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 102.0.5005.61

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.
```
</details>