Improve font embedding for MCUs when bundling translations (#7875)

Include messages from bundled translations into the character set used for deciding which glyphs to embed.
This commit is contained in:
Simon Hausmann 2025-03-18 11:54:28 +01:00 committed by GitHub
parent 14b04678b1
commit cc932fceb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 63 additions and 21 deletions

View file

@ -287,6 +287,8 @@ impl Snapshotter {
imports: document.imports.clone(),
exports,
embedded_file_resources: document.embedded_file_resources.clone(),
#[cfg(feature = "bundle-translations")]
translation_builder: document.translation_builder.clone(),
used_types: RefCell::new(self.snapshot_used_sub_types(&document.used_types.borrow())),
popup_menu_impl: document.popup_menu_impl.as_ref().map(|p| {
Weak::upgrade(&self.use_component(p))