slint-ui/slint · error
large advance width
Error message
large advance width
What it means
Error "large advance width" thrown in slint-ui/slint.
Source
Thrown at internal/compiler/passes/embed_glyphs.rs:497
.size(*pixel_size as f32)
.normalized_coords(normalized_coords)
.build();
let image = swash::scale::Render::new(&[swash::scale::Source::Outline])
.format(swash::zeno::Format::Alpha)
.render(&mut scaler, glyph_id);
match image {
Some(image) => {
let p = image.placement;
BitmapGlyph {
x: i16::try_from(p.left * 64)
.expect("large glyph x coordinate"),
y: i16::try_from((p.top - p.height as i32) * 64)
.expect("large glyph y coordinate"),
width: i16::try_from(p.width).expect("large width"),
height: i16::try_from(p.height).expect("large height"),
x_advance: i16::try_from((advance_width * 64.) as i64)
.expect("large advance width"),
data: image.data,
}
}
None => BitmapGlyph {
x: 0,
y: 0,
width: 0,
height: 0,
x_advance: i16::try_from((advance_width * 64.) as i64)
.expect("large advance width"),
data: vec![],
},
}
})
})
.collect();
BitmapGlyphs { pixel_size: *pixel_size, glyph_data }View on GitHub (pinned to 3fd8f2ec03)
Solutions
- Subset the font or reduce the pixel size so advance widths fit.
- Embed fewer glyphs.
When it happens
Trigger: Thrown at internal/compiler/passes/embed_glyphs.rs:497 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of slint-ui/slint@3fd8f2ec03 (2026-08-19).
Data as JSON: /api/errors/fdcba47a8e2bee04.
Report an issue: GitHub.