{"record":{"id":"fdcba47a8e2bee04","repo":"slint-ui/slint","slug":"large-advance-width","errorCode":null,"errorMessage":"large advance width","messagePattern":"large advance width","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/compiler/passes/embed_glyphs.rs","lineNumber":497,"sourceCode":"                            .size(*pixel_size as f32)\n                            .normalized_coords(normalized_coords)\n                            .build();\n                        let image = swash::scale::Render::new(&[swash::scale::Source::Outline])\n                            .format(swash::zeno::Format::Alpha)\n                            .render(&mut scaler, glyph_id);\n\n                        match image {\n                            Some(image) => {\n                                let p = image.placement;\n                                BitmapGlyph {\n                                    x: i16::try_from(p.left * 64)\n                                        .expect(\"large glyph x coordinate\"),\n                                    y: i16::try_from((p.top - p.height as i32) * 64)\n                                        .expect(\"large glyph y coordinate\"),\n                                    width: i16::try_from(p.width).expect(\"large width\"),\n                                    height: i16::try_from(p.height).expect(\"large height\"),\n                                    x_advance: i16::try_from((advance_width * 64.) as i64)\n                                        .expect(\"large advance width\"),\n                                    data: image.data,\n                                }\n                            }\n                            None => BitmapGlyph {\n                                x: 0,\n                                y: 0,\n                                width: 0,\n                                height: 0,\n                                x_advance: i16::try_from((advance_width * 64.) as i64)\n                                    .expect(\"large advance width\"),\n                                data: vec![],\n                            },\n                        }\n                    })\n                })\n                .collect();\n\n            BitmapGlyphs { pixel_size: *pixel_size, glyph_data }","sourceCodeStart":479,"sourceCodeEnd":515,"githubUrl":"https://github.com/slint-ui/slint/blob/3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016/internal/compiler/passes/embed_glyphs.rs#L479-L515","documentation":"Error \"large advance width\" thrown in slint-ui/slint.","triggerScenarios":"Thrown at internal/compiler/passes/embed_glyphs.rs:497 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Subset the font or reduce the pixel size so advance widths fit.","Embed fewer glyphs."],"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"}