pub(crate) struct GlyphPainter<'a> {
pub(crate) face: &'a Face<'a>,
pub(crate) svg: &'a mut XmlWriter,
pub(crate) path_buf: &'a mut String,
pub(crate) gradient_index: usize,
pub(crate) clip_path_index: usize,
pub(crate) palette_index: u16,
pub(crate) transform: Transform,
pub(crate) outline_transform: Transform,
pub(crate) transforms_stack: Vec<Transform>,
}
Fields§
§face: &'a Face<'a>
§svg: &'a mut XmlWriter
§path_buf: &'a mut String
§gradient_index: usize
§clip_path_index: usize
§palette_index: u16
§transform: Transform
§outline_transform: Transform
§transforms_stack: Vec<Transform>
Implementations§
Source§impl<'a> GlyphPainter<'a>
impl<'a> GlyphPainter<'a>
fn write_gradient_stops(&mut self, stops: GradientStopsIter<'_, '_>)
fn paint_solid(&mut self, color: RgbaColor)
fn paint_linear_gradient(&mut self, gradient: LinearGradient<'a>)
fn paint_radial_gradient(&mut self, gradient: RadialGradient<'a>)
fn paint_sweep_gradient(&mut self, _: SweepGradient<'a>)
Source§impl GlyphPainter<'_>
impl GlyphPainter<'_>
fn clip_with_path(&mut self, path: &str)
Trait Implementations§
Source§impl<'a> Painter<'a> for GlyphPainter<'a>
impl<'a> Painter<'a> for GlyphPainter<'a>
Source§fn outline_glyph(&mut self, glyph_id: GlyphId)
fn outline_glyph(&mut self, glyph_id: GlyphId)
Outline a glyph and store it.
Source§fn push_layer(&mut self, mode: CompositeMode)
fn push_layer(&mut self, mode: CompositeMode)
Push a new layer with the given composite mode.
Source§fn push_transform(&mut self, transform: Transform)
fn push_transform(&mut self, transform: Transform)
Push a transform.
Source§fn pop_transform(&mut self)
fn pop_transform(&mut self)
Pop the last transform.
Source§fn push_clip_box(&mut self, clipbox: ClipBox)
fn push_clip_box(&mut self, clipbox: ClipBox)
Push a new clip path using the clip box.
Auto Trait Implementations§
impl<'a> Freeze for GlyphPainter<'a>
impl<'a> RefUnwindSafe for GlyphPainter<'a>
impl<'a> Send for GlyphPainter<'a>
impl<'a> Sync for GlyphPainter<'a>
impl<'a> Unpin for GlyphPainter<'a>
impl<'a> !UnwindSafe for GlyphPainter<'a>
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