Repository: flutter
Issue: "→" character behaves differently in web app
Labels: engine,dependency: skia,platform-web,e: web_canvaskit,has reproducible steps,P2,found in release: 2.10,found in release: 2.13,team-web,triaged-web

## Original Detection of issue

- In https://github.com/flutter/devtools/issues/3868 (from the devtools repo)
    - It was noticed that function signatures were not aligned correctly. 
    - while debugging I noticed that taking the `→` character out of the function signature fixed the formatting issues.
    - It was also noticed that this formatting issue only seemed to be present in chrome
    - For now this issue will be fixed by replacing `→` with `->`(an arrow using 2 ascii characters)
    - I will submit an issue in devtools to restore the unicode arrow when the issue is resolved.

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Execute `flutter run -d chrome` on the code sample <!-- (see "Code sample" section below) -->
2. Notice the bounds of the background on both versions of the text
3. Execute `flutter run -d macos` on the code sample (or some other non-chrome device)
4. Notice the bounds of the background are different from the bounds seen in macos


**Expected results:** (Macos)<!-- what did you want to see? -->
When run on `macos` the bounds of the `->` are uniform with the rest of the text 
![Screen Shot 2022-04-25 at 11 33 32 AM](https://user-images.githubusercontent.com/1386322/165138686-432f25b3-4d5e-4a80-b634-7ffd4253e5a2.png)

**Actual results:**(Chrome) <!-- what did you see? -->
When run on `chrome` the bound of the `->` are not in line with the rest of the text
![Screen Shot 2022-04-25 at 11 32 26 AM](https://user-images.githubusercontent.com/1386322/165138727-18079677-3397-4dc3-9f71-b84045a14872.png)

<details>
<summary>Code sample</summary>

<!--
      Please create a minimal reproducible sample that shows the problem
      and attach it below between the lines with the backticks.

      To create it you can use `flutter create bug` command and update the `main.dart` file.

      Alternatively, you can use https://dartpad.dev/
      which is capable of creating and running small Flutter apps.

      Without this we will unlikely be able to progress on the issue, and because of that
      we regretfully will have to close it.
-->

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Invoke "debug painting" (press "p" in the console, choose the
          // "Toggle Debug Paint" action from the Flutter Inspector in Android
          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
          // to see the wireframe for each widget.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button → many times:',
              style: TextStyle(backgroundColor: Color.fromRGBO(0, 255, 0, 1.0)),
            ),
            const Text(
              '----',
            ),
            const Text(
              'You have pushed the button this many times:',
              style: TextStyle(backgroundColor: Color.fromRGBO(0, 255, 0, 1.0)),
            ),
            const Text(
              '=========',
            ),
            Row(
              children: [
                const Flexible(
                  child: Text("Here is some more text →",
                      maxLines: 1,
                      overflow: TextOverflow.ellipsis,
                      style: TextStyle(
                          backgroundColor: Color.fromRGBO(255, 0, 255, 1.0))),
                ),
              ],
            ),
            const Text(
              '----',
            ),
            Row(
              children: [
                const Flexible(
                  child: Text("Here is some more text",
                      maxLines: 1,
                      overflow: TextOverflow.ellipsis,
                      style: TextStyle(
                          backgroundColor: Color.fromRGBO(255, 0, 255, 1.0))),
                ),
              ],
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

```

</details>


<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->