{"record":{"id":"eb9450e4562a744d","repo":"slint-ui/slint","slug":"more-than-65535-glyphs-are-not-supported","errorCode":null,"errorMessage":"more than 65535 glyphs are not supported","messagePattern":"more than 65535 glyphs are not supported","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/compiler/passes/embed_glyphs.rs","lineNumber":400,"sourceCode":"    fallback_fonts: &[Font],\n    _compiler_config: &CompilerConfiguration,\n    normalized_coords: &[skrifa::instance::NormalizedCoord],\n    _variations: &[(skrifa::Tag, f32)],\n    override_weight: Option<u16>,\n) -> BitmapFont {\n    let coords_i16: Vec<i16> = normalized_coords.iter().map(|c| c.to_bits()).collect();\n\n    let mut character_map: Vec<CharacterMapEntry> = character_coverage\n        .filter(|code_point| {\n            core::iter::once(&font)\n                .chain(fallback_fonts.iter())\n                .any(|font| swash_font_ref(font).charmap().map(*code_point) != 0)\n        })\n        .enumerate()\n        .map(|(glyph_index, code_point)| CharacterMapEntry {\n            code_point,\n            glyph_index: u16::try_from(glyph_index)\n                .expect(\"more than 65535 glyphs are not supported\"),\n        })\n        .collect();\n\n    #[cfg(feature = \"sdf-fonts\")]\n    let glyphs = if _compiler_config.use_sdf_fonts {\n        embed_sdf_glyphs(pixel_sizes, &character_map, &font, fallback_fonts, _variations)\n    } else {\n        embed_alpha_map_glyphs(pixel_sizes, &character_map, &font, fallback_fonts, &coords_i16)\n    };\n    #[cfg(not(feature = \"sdf-fonts\"))]\n    let glyphs =\n        embed_alpha_map_glyphs(pixel_sizes, &character_map, &font, fallback_fonts, &coords_i16);\n\n    character_map.sort_by_key(|entry| entry.code_point);\n\n    let font_ref = skrifa::FontRef::from_index(font.font.blob.data(), font.font.index).unwrap();\n    let location = skrifa::instance::LocationRef::new(normalized_coords);\n    let metrics =","sourceCodeStart":382,"sourceCodeEnd":418,"githubUrl":"https://github.com/slint-ui/slint/blob/3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016/internal/compiler/passes/embed_glyphs.rs#L382-L418","documentation":"Error \"more than 65535 glyphs are not supported\" thrown in slint-ui/slint.","triggerScenarios":"Thrown at internal/compiler/passes/embed_glyphs.rs:400 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Subset the font or reduce the number of distinct glyphs below 65535.","Embed fewer characters via the glyph embedding options."],"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"}