pub type PaintComposite<'a> = TableRef<'a, PaintCompositeMarker>;
Expand description
PaintComposite table
Aliased Type§
struct PaintComposite<'a> { /* private fields */ }
Implementations§
Source§impl<'a> PaintComposite<'a>
impl<'a> PaintComposite<'a>
Sourcepub fn source_paint_offset(&self) -> Offset24
pub fn source_paint_offset(&self) -> Offset24
Offset to a source Paint table.
Sourcepub fn source_paint(&self) -> Result<Paint<'a>, ReadError>
pub fn source_paint(&self) -> Result<Paint<'a>, ReadError>
Attempt to resolve source_paint_offset
.
Sourcepub fn composite_mode(&self) -> CompositeMode
pub fn composite_mode(&self) -> CompositeMode
A CompositeMode enumeration value.
Sourcepub fn backdrop_paint_offset(&self) -> Offset24
pub fn backdrop_paint_offset(&self) -> Offset24
Offset to a backdrop Paint table.
Sourcepub fn backdrop_paint(&self) -> Result<Paint<'a>, ReadError>
pub fn backdrop_paint(&self) -> Result<Paint<'a>, ReadError>
Attempt to resolve backdrop_paint_offset
.
Source§impl<'a, T> TableRef<'a, T>
impl<'a, T> TableRef<'a, T>
Sourcepub fn resolve_offset<O: Offset, R: FontRead<'a>>(
&self,
offset: O,
) -> Result<R, ReadError>
pub fn resolve_offset<O: Offset, R: FontRead<'a>>( &self, offset: O, ) -> Result<R, ReadError>
Resolve the provided offset from the start of this table.
Sourcepub fn offset_data(&self) -> FontData<'a>
pub fn offset_data(&self) -> FontData<'a>
Return a reference to this table’s raw data.
We use this in the compile crate to resolve offsets.