read_fonts::tables::glyf

Trait PointCoord

source
pub trait PointCoord:
    Copy
    + Default
    + AnyBitPattern
    + PartialEq
    + PartialOrd
    + Add<Output = Self>
    + AddAssign
    + Sub<Output = Self>
    + Div<Output = Self>
    + Mul<Output = Self>
    + MulAssign {
    // Required methods
    fn from_fixed(x: Fixed) -> Self;
    fn from_i32(x: i32) -> Self;
    fn to_f32(self) -> f32;
    fn midpoint(self, other: Self) -> Self;
}
Expand description

Trait for types that are usable for TrueType point coordinates.

Required Methods§

source

fn from_fixed(x: Fixed) -> Self

source

fn from_i32(x: i32) -> Self

source

fn to_f32(self) -> f32

source

fn midpoint(self, other: Self) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PointCoord for f32

source§

fn from_fixed(x: Fixed) -> Self

source§

fn from_i32(x: i32) -> Self

source§

fn to_f32(self) -> f32

source§

fn midpoint(self, other: Self) -> Self

source§

impl PointCoord for i32

source§

fn from_fixed(x: Fixed) -> Self

source§

fn from_i32(x: i32) -> Self

source§

fn to_f32(self) -> f32

source§

fn midpoint(self, other: Self) -> Self

source§

impl PointCoord for F26Dot6

source§

fn from_fixed(x: Fixed) -> Self

source§

fn from_i32(x: i32) -> Self

source§

fn to_f32(self) -> f32

source§

fn midpoint(self, other: Self) -> Self

source§

impl PointCoord for Fixed

source§

fn from_fixed(x: Fixed) -> Self

source§

fn from_i32(x: i32) -> Self

source§

fn to_f32(self) -> f32

source§

fn midpoint(self, other: Self) -> Self

Implementors§