{"record":{"id":"cb915b73dbb9bbff","repo":"emilk/egui","slug":"no-fonts-loaded","errorCode":null,"errorMessage":"No fonts loaded","messagePattern":"No fonts loaded","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/egui/src/context.rs","lineNumber":2877,"sourceCode":"        shapes: Vec<ClippedShape>,\n        pixels_per_point: f32,\n    ) -> Vec<ClippedPrimitive> {\n        profiling::function_scope!();\n\n        // A tempting optimization is to reuse the tessellation from last frame if the\n        // shapes are the same, but just comparing the shapes takes about 50% of the time\n        // it takes to tessellate them, so it is not a worth optimization.\n\n        self.write(|ctx| {\n            let tessellation_options = ctx.memory.options.tessellation_options;\n            let texture_atlas = if let Some(fonts) = ctx.fonts.as_ref() {\n                fonts.texture_atlas()\n            } else {\n                log::warn!(\"No font size matching {pixels_per_point} pixels per point found.\");\n                ctx.fonts\n                    .iter()\n                    .next()\n                    .expect(\"No fonts loaded\")\n                    .texture_atlas()\n            };\n\n            let paint_stats = PaintStats::from_shapes(&shapes);\n            let clipped_primitives = {\n                profiling::scope!(\"tessellator::tessellate_shapes\");\n                tessellator::Tessellator::new(\n                    pixels_per_point,\n                    tessellation_options,\n                    texture_atlas.size(),\n                    texture_atlas.prepared_discs(),\n                )\n                .tessellate_shapes(shapes)\n            };\n            ctx.paint_stats = paint_stats.with_clipped_primitives(&clipped_primitives);\n            clipped_primitives\n        })\n    }","sourceCodeStart":2859,"sourceCodeEnd":2895,"githubUrl":"https://github.com/emilk/egui/blob/d802a982ce959839d92f4f6718fdffa41143110e/crates/egui/src/context.rs#L2859-L2895","documentation":"Error \"No fonts loaded\" thrown in emilk/egui.","triggerScenarios":"Thrown at crates/egui/src/context.rs:2877 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d802a982ce959839d92f4f6718fdffa41143110e","analyzedAt":"2026-08-16T20:07:53.954Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}