mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fixes https://github.com/flutter/flutter/issues/156361 cc @lyceel. A bit of miscommunication on the priority of this one. I thought the default font factories were sufficient for the next release. But it turns out that was not true on the board which is a custom platform. In any case, this should unblock custom font registrations. See the `CanCreateParagraphsWithCustomFont` case for an example. If you don't provide the family name alias for the custom font, the name will be read from the font data. This example uses the custom "WhatTheFlutter" custom font family in "wtf.otf". <img width="1136" alt="Screenshot 2024-10-17 at 1 26 36 PM" src="https://github.com/user-attachments/assets/dbbef2fd-f854-4330-8c82-fc8378489769">