Struct write_fonts::tables::glyf::Bbox
source · 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: i16Implementations§
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
source§impl PartialEq for Bbox
impl PartialEq for Bbox
impl Copy for Bbox
impl Eq for Bbox
impl StructuralEq for Bbox
impl StructuralPartialEq for Bbox
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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.