{"record":{"id":"74aa36c56aa6fa3f","repo":"slint-ui/slint","slug":"large-glyph-x-coordinate","errorCode":null,"errorMessage":"large glyph x coordinate","messagePattern":"large glyph x coordinate","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/compiler/passes/embed_glyphs.rs","lineNumber":491,"sourceCode":"\n                    SCALE_CONTEXT.with(|ctx| {\n                        let font_ref = swash_font_ref(font_to_use);\n                        let mut ctx = ctx.borrow_mut();\n                        let mut scaler = ctx\n                            .builder(font_ref)\n                            .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                            },","sourceCodeStart":473,"sourceCodeEnd":509,"githubUrl":"https://github.com/slint-ui/slint/blob/3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016/internal/compiler/passes/embed_glyphs.rs#L473-L509","documentation":"Error \"large glyph x coordinate\" thrown in slint-ui/slint.","triggerScenarios":"Thrown at internal/compiler/passes/embed_glyphs.rs:491 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reduce the glyph atlas size or subset the font so coordinates fit.","Use a smaller font size or 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-14T05:17:10.506Z"}