Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@harryterkelsen
Copy link
Contributor

Rather than download the monolithic 24MB Noto Color Emoji .ttf font, this change uses the .woff2 subfonts by accessing the GoogleFonts CSS API and preprocessing the split subfonts.

This change requires a corresponding change in buildroot and Flutter's freetype mirror to make use of brotli and woff2.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Apr 18, 2023
@harryterkelsen
Copy link
Contributor Author

This is a prototype

@harryterkelsen
Copy link
Contributor Author

We are weighing the font size benefits against the code size hit from including brotli decompression with the Flutter engine.

auto-submit bot pushed a commit that referenced this pull request Oct 21, 2024
- Enable support for WOFF2 fonts.
- Add Brotli depndency (increases CK size by ~53KB compressed, including the Brotli dictionary).
- Use split WOFF2 fonts for Emoji.
- Remove the `useColorEmoji` runtime config flag.

Partially based off of #41282
Fixes flutter/flutter#119536
Contributes to flutter/flutter#153974 and opens the door for moving more fonts to WOFF2.
nick9822 pushed a commit to nick9822/flutter that referenced this pull request Dec 18, 2024
- Enable support for WOFF2 fonts.
- Add Brotli depndency (increases CK size by ~53KB compressed, including the Brotli dictionary).
- Use split WOFF2 fonts for Emoji.
- Remove the `useColorEmoji` runtime config flag.

Partially based off of flutter/engine#41282
Fixes flutter#119536
Contributes to flutter#153974 and opens the door for moving more fonts to WOFF2.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant