Skip to main content

IKerningTableMethods

Trait IKerningTableMethods 

Source
pub trait IKerningTableMethods: IKerningTable {
    // Provided methods
    fn ctor(self) { ... }
    fn add_kerning_pair(self) { ... }
    fn add_kerning_pair_2(
        self,
        first: impl Into<u32>,
        second: impl Into<u32>,
        offset: impl Into<f32>,
    ) -> i32 { ... }
    fn add_glyph_pair_adjustment_record(
        self,
        first: impl Into<u32>,
        first_adjustments: impl Into<GlyphValueRecord_Legacy>,
        second: impl Into<u32>,
        second_adjustments: impl Into<GlyphValueRecord_Legacy>,
    ) -> i32 { ... }
    fn remove_kerning_pair(self, left: impl Into<i32>, right: impl Into<i32>) { ... }
    fn remove_kerning_pair_2(self, index: impl Into<i32>) { ... }
    fn sort_kerning_pairs(self) { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn add_kerning_pair(self)

AddKerningPair() overload

Source

fn add_kerning_pair_2( self, first: impl Into<u32>, second: impl Into<u32>, offset: impl Into<f32>, ) -> i32

AddKerningPair(u32, u32, f32) overload

Source

fn add_glyph_pair_adjustment_record( self, first: impl Into<u32>, first_adjustments: impl Into<GlyphValueRecord_Legacy>, second: impl Into<u32>, second_adjustments: impl Into<GlyphValueRecord_Legacy>, ) -> i32

AddGlyphPairAdjustmentRecord(u32, crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy, u32, crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy) overload

Source

fn remove_kerning_pair(self, left: impl Into<i32>, right: impl Into<i32>)

RemoveKerningPair(i32, i32) overload

Source

fn remove_kerning_pair_2(self, index: impl Into<i32>)

RemoveKerningPair(i32) overload

Source

fn sort_kerning_pairs(self)

SortKerningPairs() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IKerningTable> IKerningTableMethods for __T

Available on crate feature tm_pro-kerningtable only.