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