Repository: flutter
Issue: "ASSERT" logs seen with overflowing text
Labels: c: regression,engine,dependency: skia,a: typography,good first issue,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-engine,triaged-engine

This error seems to be happening easily with certain scripts. In the example below, it's reproduced after adding Devanagari.

## Steps to Reproduce

1. Execute `flutter run` on the code sample on desktop
2. Resize the window horizontally towards its minimum size and back a few times

**Expected results:** No errors in console

**Actual results:** Cryptic "ASSERT" logs in console:

```
ASSERT: 8.367996 != 12.735992
ASSERT: 13.936005 != 18.304001
ASSERT: 8.208008 != 12.576004
ASSERT: 13.263992 != 17.631989
ASSERT: 9.264008 != 13.632004
ASSERT: 8.208008 != 12.576004
ASSERT: 8.768005 != 13.136002
ASSERT: 8.367996 != 12.735992
ASSERT: 7.632004 != 12.000000
ASSERT: 8.367996 != 12.735992
ASSERT: 8.208008 != 12.576004
ASSERT: 18.496002 != 22.863998
ASSERT: 9.264008 != 13.632004
ASSERT: 35.824005 != 40.192001
```

<details>
<summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    const TextStyle style = TextStyle(fontSize: 16.0);

    final List<String> texts = <String>[
      'Lorem ipsum dolor sit amet, tollit laboramus efficiantur usu ad, nec te quas consequuntur. '
          'Lorem ipsum dolor sit amet, tollit laboramus efficiantur usu ad, nec te quas consequuntur.',
      '국민경제의 발전을 위한 중요정책의 수립에 관하여 대통령의 자문에 응하기 위하여 국민경제자문회의를 둘 수 있다. '
          '국민경제의 발전을 위한 중요정책의 수립에 관하여 대통령의 자문에 응하기 위하여 국민경제자문회의를 둘 수 있다. ',
      'पढाए हिंदी रहारुप अनुवाद कार्यलय मुख्य संस्था सोफ़तवेर निरपेक्ष उनका आपके बाटते आशाआपस मुख्यतह उशकी करता। शुरुआत संस्था '
      'कुशलता मेंभटृ अनुवाद गएआप विशेष सकते परिभाषित लाभान्वित प्रति देकर समजते दिशामे प्राप्त जैसे वर्णन संस्थान निर्माता प्रव्रुति भाति चुनने उपलब्ध बेंगलूर अर्थपुर्ण',
    ];

    final List<Widget> cards = texts.map<Widget>(
      (text) => InkWell(
        child: ConstrainedBox(
          constraints: const BoxConstraints(
            minWidth: 100.0,
            maxWidth: 140.0,
            minHeight: 50.0,
            maxHeight: 100.0,
          ),
          child: Padding(
            padding: const EdgeInsets.symmetric(horizontal: 30.0, vertical: 10),
            child: Container(
            color: Colors.amber,
              child: Text(text, style: style),
            ),
          ),
        ),
      ),
    ).toList();

    return Scaffold(
      appBar: AppBar(title: Text(widget.title)),
      body: Center(
        child: Column(
          children: <Widget>[
            const SizedBox(height: 10.0),
            ...cards,
          ],
        ),
      ),
    );
  }
}
```

</details>

<details>
  <summary>Logs</summary>

```
% flutter --version
Flutter 3.7.0-20.0.pre.6 • channel master • https://github.com/flutter/flutter.git
Framework • revision f8628b5cb1 (10 hours ago) • 2023-01-11 18:48:03 -0800
Engine • revision 4a8d6866a1
Tools • Dart 3.0.0 (build 3.0.0-112.0.dev) • DevTools 2.20.0
```

</details>