emilk/egui · error
Invalid variation axis tag
Error message
Invalid variation axis tag
What it means
Error "Invalid variation axis tag" thrown in emilk/egui.
Source
Thrown at crates/epaint/src/text/text_layout_types.rs:410
impl IntoTag for [u8; 4] {
#[inline(always)]
fn into_tag(self) -> font_types::Tag {
font_types::Tag::new_checked(&self).expect("Invalid variation axis tag")
}
}
impl IntoTag for &[u8; 4] {
#[inline(always)]
fn into_tag(self) -> font_types::Tag {
font_types::Tag::new_checked(self).expect("Invalid variation axis tag")
}
}
impl IntoTag for &str {
#[inline(always)]
fn into_tag(self) -> font_types::Tag {
font_types::Tag::from_str(self).expect("Invalid variation axis tag")
}
}
/// List of font variation coordinates by axis tag. If more than one coordinate for a given axis is provided, the last
/// one added is used.
#[derive(Clone, Debug, PartialEq, Default)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub struct VariationCoords(SmallVec<[(font_types::Tag, f32); 2]>);
impl VariationCoords {
/// Create a list of variation coordinates from a sequence of (tag, value) pairs.
///
/// ## Example:
/// ```
/// use epaint::text::VariationCoords;
///
/// let coords = VariationCoords::new([
/// (b"wght", 500.0),View on GitHub (pinned to d802a982ce)
When it happens
Trigger: Thrown at crates/epaint/src/text/text_layout_types.rs:410 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of emilk/egui@d802a982ce (2026-08-16).
Data as JSON: /api/errors/3391f853ed7b99aa.
Report an issue: GitHub.