Skip to content

bevy_text Emoji support#23922

Merged
alice-i-cecile merged 4 commits intobevyengine:mainfrom
ickshonpe:emoji-support
Apr 21, 2026
Merged

bevy_text Emoji support#23922
alice-i-cecile merged 4 commits intobevyengine:mainfrom
ickshonpe:emoji-support

Conversation

@ickshonpe
Copy link
Copy Markdown
Contributor

@ickshonpe ickshonpe commented Apr 21, 2026

Objective

Add basic emoji support.

Solution

  • In get_outlined_glyph_texture just use the given rgba image data if the image from swash is not an alpha mask.
  • Add is_alpha_mask bool fields to GlyphAtlasInfo and GlyphAtlasLocation.
  • In extract_text_sections only apply a color tint if the glyph image is an alpha mask.

Testing

Should be compatible with all the existing features, I tested TextShadows and they worked correctly.

The changes here feel a bit half baked, but it's super simple and I've got leave for somewhere so hammered this out in a rush.

emoji

@alice-i-cecile alice-i-cecile added C-Feature A new feature, making something new possible A-Text Rendering and layout for characters X-Uncontroversial This work is generally agreed upon D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes and removed D-Straightforward Simple bug fixes and API improvements, docs, test and examples labels Apr 21, 2026
Copy link
Copy Markdown
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly very straightforward. Neat!

@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Apr 21, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Apr 21, 2026
@jordanhalase
Copy link
Copy Markdown
Contributor

The emoji keyboard fails to appear for me on macOS via Ctrl+Cmd+Space nor via fn+E.

@jordanhalase
Copy link
Copy Markdown
Contributor

Could be solved in a separate PR though.

@ickshonpe
Copy link
Copy Markdown
Contributor Author

Could be solved in a separate PR though.

Yep this PR doesn't make any input related changes, it only adds rendering support.

Merged via the queue into bevyengine:main with commit cfb897f Apr 21, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Text Rendering and layout for characters C-Feature A new feature, making something new possible D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it X-Uncontroversial This work is generally agreed upon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants