pub trait IDWriteFontResource_Impl: Sized {
    // Required methods
    fn GetFontFile(&self) -> Result<IDWriteFontFile>;
    fn GetFontFaceIndex(&self) -> u32;
    fn GetFontAxisCount(&self) -> u32;
    fn GetDefaultFontAxisValues(
        &self,
        fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE,
        fontaxisvaluecount: u32,
    ) -> Result<()>;
    fn GetFontAxisRanges(
        &self,
        fontaxisranges: *mut DWRITE_FONT_AXIS_RANGE,
        fontaxisrangecount: u32,
    ) -> Result<()>;
    fn GetFontAxisAttributes(
        &self,
        axisindex: u32,
    ) -> DWRITE_FONT_AXIS_ATTRIBUTES;
    fn GetAxisNames(&self, axisindex: u32) -> Result<IDWriteLocalizedStrings>;
    fn GetAxisValueNameCount(&self, axisindex: u32) -> u32;
    fn GetAxisValueNames(
        &self,
        axisindex: u32,
        axisvalueindex: u32,
        fontaxisrange: *mut DWRITE_FONT_AXIS_RANGE,
        names: *mut Option<IDWriteLocalizedStrings>,
    ) -> Result<()>;
    fn HasVariations(&self) -> BOOL;
    fn CreateFontFace(
        &self,
        fontsimulations: DWRITE_FONT_SIMULATIONS,
        fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE,
        fontaxisvaluecount: u32,
    ) -> Result<IDWriteFontFace5>;
    fn CreateFontFaceReference(
        &self,
        fontsimulations: DWRITE_FONT_SIMULATIONS,
        fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE,
        fontaxisvaluecount: u32,
    ) -> Result<IDWriteFontFaceReference1>;
}

Required Methods§

fn GetFontFile(&self) -> Result<IDWriteFontFile>

fn GetFontFaceIndex(&self) -> u32

fn GetFontAxisCount(&self) -> u32

fn GetDefaultFontAxisValues( &self, fontaxisvalues: *mut DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, ) -> Result<()>

fn GetFontAxisRanges( &self, fontaxisranges: *mut DWRITE_FONT_AXIS_RANGE, fontaxisrangecount: u32, ) -> Result<()>

fn GetFontAxisAttributes(&self, axisindex: u32) -> DWRITE_FONT_AXIS_ATTRIBUTES

fn GetAxisNames(&self, axisindex: u32) -> Result<IDWriteLocalizedStrings>

fn GetAxisValueNameCount(&self, axisindex: u32) -> u32

fn GetAxisValueNames( &self, axisindex: u32, axisvalueindex: u32, fontaxisrange: *mut DWRITE_FONT_AXIS_RANGE, names: *mut Option<IDWriteLocalizedStrings>, ) -> Result<()>

fn HasVariations(&self) -> BOOL

fn CreateFontFace( &self, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, ) -> Result<IDWriteFontFace5>

fn CreateFontFaceReference( &self, fontsimulations: DWRITE_FONT_SIMULATIONS, fontaxisvalues: *const DWRITE_FONT_AXIS_VALUE, fontaxisvaluecount: u32, ) -> Result<IDWriteFontFaceReference1>

Object Safety§

This trait is not object safe.

Implementors§