pub trait AsFaceRef {
fn as_face_ref(&self) -> &ttf_parser::Face<'_>;
}
impl AsFaceRef for ttf_parser::Face<'_> {
#[inline]
fn as_face_ref(&self) -> &ttf_parser::Face<'_> {
self
}
}
impl AsFaceRef for &ttf_parser::Face<'_> {
#[inline]
fn as_face_ref(&self) -> &ttf_parser::Face<'_> {
self
}
}
pub trait FaceMut {
fn set_variation(&mut self, axis: ttf_parser::Tag, value: f32) -> Option<()>;
}
impl FaceMut for ttf_parser::Face<'_> {
#[inline]
fn set_variation(&mut self, axis: ttf_parser::Tag, value: f32) -> Option<()> {
ttf_parser::Face::set_variation(self, axis, value)
}
}
impl FaceMut for &mut ttf_parser::Face<'_> {
#[inline]
fn set_variation(&mut self, axis: ttf_parser::Tag, value: f32) -> Option<()> {
ttf_parser::Face::set_variation(self, axis, value)
}
}