Skip to content

Conversation

@ickshonpe
Copy link
Contributor

@ickshonpe ickshonpe commented Oct 30, 2025

Objective

Update the cosmic-text dependency to 0.15

Solution

Very minimal changes here, nothing user facing except an error return type.

  • Cosmic-text no longer uses ttf_parser, to validate fonts during asset loading a skrifa::FontRef is constructed instead. If the font is invalid, the font asset loader now returns a skrifa::ReadError, not a ttf_parser::FaceParsingError.
  • To get a font from the global CosmicFontSystem instance, the get_font function requires a weight now. The weight is looked up from the CosmicFontSystems font database, immediately before the get_font call.

@ickshonpe ickshonpe added C-Dependencies A change to the crates that Bevy depends on A-Text Rendering and layout for characters D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Oct 30, 2025
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-Dependencies A change to the crates that Bevy depends on D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants