pub fn from_vec(
        data: Vec<u8>,
        cx: &Context,
        format: wgpu::TextureFormat,
        depth_stencil: wgpu::DepthStencilState,
    ) -> Result<Self> {
        Ok(Self::new(
            ab_glyph::FontArc::try_from_vec(data)?,
            cx,
            format,
            depth_stencil,
        ))
    }
/// Loads a font from owned font data.
///
/// See [FontBrush::new].
Loads a font from owned font data.
Loads a font from owned font data .
pub fn from_vec(
        data: Vec<u8>,
        cx: &Context,
        format: wgpu::TextureFormat,
        depth_stencil: wgpu::DepthStencilState,
    ) -> Result<Self> {
        Ok(Self::new(
            ab_glyph::FontArc::try_from_vec(data)?,
            cx,
            format,
            depth_stencil,
        ))
    }
pub fn from_vec ( data : Vec < u8 > , cx : & Context , format : wgpu :: TextureFormat , depth_stencil : wgpu :: DepthStencilState , ) -> Result < Self > { Ok ( Self :: new ( ab_glyph :: FontArc :: try_from_vec ( data ) ? , cx , format , depth_stencil , ) ) }
Loads a font from owned font data.
Loads a font from owned font data .
data
Vec<u8>
cx
&Context
format
wgpu::TextureFormat
depth_stencil
wgpu::DepthStencilState
data
Vec<u8>
cx
&Context
format
wgpu::TextureFormat
depth_stencil
wgpu::DepthStencilState