#[cfg(doc)]
#[cfg(feature = "web")]
use crate::Web;
#[doc = crate::_tags!(runtime text layout)]
#[doc = crate::_doc_meta!{
location("lang/prog/ffi/js"),
test_size_of(JsTextRenderMetrics = 12|96),
}]
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, PartialEq)]
pub struct JsTextRenderMetrics {
pub width: f32,
pub ascent: f32,
pub descent: f32,
}
#[doc = crate::_tags!(runtime text layout)]
#[doc = crate::_doc_meta!{
location("lang/prog/ffi/js"),
test_size_of(JsTextRenderMetricsFull = 48|384),
}]
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, PartialEq)]
pub struct JsTextRenderMetricsFull {
pub width: f32,
pub left: f32,
pub right: f32,
pub ascent: f32,
pub descent: f32,
pub font_ascent: f32,
pub font_descent: f32,
pub em_ascent: f32,
pub em_descent: f32,
pub hanging_baseline: f32,
pub alphabetic_baseline: f32,
pub ideographic_baseline: f32,
}