mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
mcu: provide a default font size
We default to 12 pixels in the MCU renderer if no size is specified
This commit is contained in:
parent
70f3f50359
commit
07d0c6e578
1 changed files with 2 additions and 1 deletions
|
@ -182,7 +182,8 @@ pub async fn run_passes(
|
|||
collect_globals::collect_globals(doc, diag);
|
||||
|
||||
if compiler_config.embed_resources == crate::EmbedResourcesKind::EmbedTextures {
|
||||
let mut font_pixel_sizes = Vec::new();
|
||||
// Include at least the default font sizes used in the MCU backend
|
||||
let mut font_pixel_sizes = vec![(12. * compiler_config.scale_factor) as i16];
|
||||
for component in (root_component.used_types.borrow().sub_components.iter())
|
||||
.chain(std::iter::once(root_component))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue