Repository: flutter
Issue: Android and web (canvaskit) renders certain custom fonts with an incorrect offset
Labels: platform-android,framework,dependency: skia,a: typography,platform-web,e: web_canvaskit,has reproducible steps,P3,found in release: 2.5,found in release: 2.6,team-framework,triaged-framework

For some reason, when using a specific custom font, flutter is rendering its text with an incorrect offset, check the screenshoot below:

![Screenshot 2021-09-21 at 10 25 17](https://user-images.githubusercontent.com/835641/134179282-1a1ebeca-12c3-40b4-a3e5-4ab29e705519.png)

On the first example, running on iOS, everything is rendered as expected, but the two following examples, the text is a little bit down, making it outside of the `Text` position, note how the `Text` is outside the debug bounding box on the last example.

## Steps to Reproduce

1. Run `flutter create bug`.
2. Update the files as follows:
```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Flutter Demo',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  static const TextStyle label2 = TextStyle(
    letterSpacing: 0.24,
    fontSize: 12,
    fontFamily: 'MyCustomFont',
    fontWeight: FontWeight.w400,
    height: 1.33,
  );

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Container(
          height: 50,
          color: Colors.blue,
          child: const Center(
            child: Text(
              'my font test',
              style: label2,
            ),
          ),
        ),
      ),
    );
  }
}
```

Unfortunately the font file don't have an open license so I can't attach it here, but I can send it to any team member that would check this problem.

**Expected results:** Text using the custom font family should be displayed correct on all platforms

**Actual results:** Text has an incorrect offset on Android and Web canvaskit (for some reason html renderer works fine!)

I was able reproduce this issue since version `2.2.3`.

I don't known f this helps, but I compared the list of font features of the font with the issue against another font that works fine, these are the differences I could notice on the problematic font file

Has:
 - salt
 - ss03
 - ss04
 - ss05
 - cpsp

Lacks:
 - dlig

I am trying to investigate this in the meantime, but I could use some pointers in case someone has any clues.

<details>

```
[✓] Flutter (Channel master, 2.6.0-6.0.pre.161, on macOS 11.5.1 20G80 darwin-arm, locale en-GB)
    • Flutter version 2.6.0-6.0.pre.161 at /Users/erickzanardo/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 89123e8489 (6 hours ago), 2021-09-21 00:18:03 -0700
    • Engine revision 7e94275f73
    • Dart version 2.15.0 (build 2.15.0-126.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/erickzanardo/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/erickzanardo/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.5.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 11.0.8+10-b944.6916264)

[✓] VS Code (version 1.60.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (4 available)
    • SM G955F (mobile)          • ce0517155bc37c530d                   • android-arm64  • Android 9 (API 28)
    • iPhone 12 Pro Max (mobile) • E587DD95-E3B5-42D5-B972-B1A9B5C352EA • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64   • macOS 11.5.1 20G80 darwin-arm
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 93.0.4577.82

• No issues found!
```
</details>

Thanks a lot!