Struct ttf_parser::tables::cff::charstring::CharStringParser
source · pub(crate) struct CharStringParser<'a> {
pub stack: ArgumentsStack<'a>,
pub builder: &'a mut Builder<'a>,
pub x: f32,
pub y: f32,
pub has_move_to: bool,
pub is_first_move_to: bool,
pub width_only: bool,
}
Fields§
§stack: ArgumentsStack<'a>
§builder: &'a mut Builder<'a>
§x: f32
§y: f32
§has_move_to: bool
§is_first_move_to: bool
§width_only: bool
Implementations§
source§impl CharStringParser<'_>
impl CharStringParser<'_>
pub fn parse_move_to(&mut self, offset: usize) -> Result<(), CFFError>
pub fn parse_horizontal_move_to( &mut self, offset: usize, ) -> Result<(), CFFError>
pub fn parse_vertical_move_to(&mut self, offset: usize) -> Result<(), CFFError>
pub fn parse_line_to(&mut self) -> Result<(), CFFError>
pub fn parse_horizontal_line_to(&mut self) -> Result<(), CFFError>
pub fn parse_vertical_line_to(&mut self) -> Result<(), CFFError>
pub fn parse_curve_to(&mut self) -> Result<(), CFFError>
pub fn parse_curve_line(&mut self) -> Result<(), CFFError>
pub fn parse_line_curve(&mut self) -> Result<(), CFFError>
pub fn parse_hh_curve_to(&mut self) -> Result<(), CFFError>
pub fn parse_vv_curve_to(&mut self) -> Result<(), CFFError>
pub fn parse_hv_curve_to(&mut self) -> Result<(), CFFError>
pub fn parse_vh_curve_to(&mut self) -> Result<(), CFFError>
pub fn parse_flex(&mut self) -> Result<(), CFFError>
pub fn parse_flex1(&mut self) -> Result<(), CFFError>
pub fn parse_hflex(&mut self) -> Result<(), CFFError>
pub fn parse_hflex1(&mut self) -> Result<(), CFFError>
pub fn parse_int1(&mut self, op: u8) -> Result<(), CFFError>
pub fn parse_int2(&mut self, op: u8, s: &mut Stream<'_>) -> Result<(), CFFError>
pub fn parse_int3(&mut self, op: u8, s: &mut Stream<'_>) -> Result<(), CFFError>
pub fn parse_fixed(&mut self, s: &mut Stream<'_>) -> Result<(), CFFError>
Auto Trait Implementations§
impl<'a> Freeze for CharStringParser<'a>
impl<'a> !RefUnwindSafe for CharStringParser<'a>
impl<'a> !Send for CharStringParser<'a>
impl<'a> !Sync for CharStringParser<'a>
impl<'a> Unpin for CharStringParser<'a>
impl<'a> !UnwindSafe for CharStringParser<'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