pub struct Bbox {
pub x_min: i16,
pub y_min: i16,
pub x_max: i16,
pub y_max: i16,
}
Expand description
A Bounding box.
This should be the minimum rectangle which fully encloses the glyph outline; importantly this can only be determined by computing the individual Bezier segments, and cannot be determiend from points alone.
Fields§
§x_min: i16
§y_min: i16
§x_max: i16
§y_max: i16
Implementations§
Trait Implementations§
Source§impl FontWrite for Bbox
impl FontWrite for Bbox
Source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
Source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
The type of this table. Read more
impl Copy for Bbox
impl Eq for Bbox
impl StructuralPartialEq for Bbox
Auto Trait Implementations§
impl Freeze for Bbox
impl RefUnwindSafe for Bbox
impl Send for Bbox
impl Sync for Bbox
impl Unpin for Bbox
impl UnwindSafe for Bbox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T
, using the provided data to resolve any offsets.