{"record":{"id":"45c4eaee1cb4b28f","repo":"slint-ui/slint","slug":"no-font-fallback-found-the-software-renderer-requ","errorCode":null,"errorMessage":"No font fallback found. The software renderer requires enabling the `EmbedForSoftwareRenderer` option when compiling slint files.","messagePattern":"No font fallback found\\. The software renderer requires enabling the `EmbedForSoftwareRenderer` option when compiling slint files\\.","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/renderers/software/fonts.rs","lineNumber":193,"sourceCode":"                fonts\n                    .iter()\n                    .cloned()\n                    .filter(|bitmap_font| bitmap_font.italic == request.italic)\n                    .min_by_key(|bitmap_font| bitmap_font.weight.abs_diff(requested_weight))\n                    .or_else(|| fonts.first().cloned())\n            }) {\n                fallback_bitmap_font\n            } else {\n                #[cfg(feature = \"systemfonts\")]\n                return systemfonts::fallbackfont(\n                    request,\n                    scale_factor,\n                    &mut font_context.collection,\n                    &mut font_context.source_cache,\n                )\n                .into();\n                #[cfg(not(feature = \"systemfonts\"))]\n                panic!(\n                    \"No font fallback found. The software renderer requires enabling the `EmbedForSoftwareRenderer` option when compiling slint files.\"\n                )\n            }\n        }\n    };\n\n    let requested_pixel_size: PhysicalLength =\n        (request.pixel_size.unwrap_or(DEFAULT_FONT_SIZE).cast() * scale_factor).cast();\n\n    let nearest_pixel_size = font\n        .glyphs\n        .partition_point(|glyphs| pixel_size(glyphs) <= requested_pixel_size)\n        .saturating_sub(1);\n    let matching_glyphs = &font.glyphs[nearest_pixel_size];\n\n    let pixel_size = if font.sdf { requested_pixel_size } else { pixel_size(matching_glyphs) };\n\n    pixelfont::PixelFont { bitmap_font: font, glyphs: matching_glyphs, pixel_size }.into()","sourceCodeStart":175,"sourceCodeEnd":211,"githubUrl":"https://github.com/slint-ui/slint/blob/3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016/internal/renderers/software/fonts.rs#L175-L211","documentation":"Error \"No font fallback found. The software renderer requires enabling the `EmbedForSoftwareRenderer` option when compiling slint files.\" thrown in slint-ui/slint.","triggerScenarios":"Thrown at internal/renderers/software/fonts.rs:193 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Compile the .slint files with the EmbedForSoftwareRenderer option so fonts are embedded.","Install a fallback font discoverable by the software renderer."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016","analyzedAt":"2026-08-19T23:23:16.610Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}