/// Loads a font from a path.
///
/// See [FontBrush::new].
Loads a font from a path.
Loads a font from a path .
pub fn from_path(
        path: impl AsRef<Path>,
        cx: &Context,
        format: wgpu::TextureFormat,
        depth_stencil: wgpu::DepthStencilState,
    ) -> Result<Self> {
        Self::from_vec(std::fs::read(path)?, cx, format, depth_stencil)
    }
pub fn from_path ( path : impl AsRef < Path > , cx : & Context , format : wgpu :: TextureFormat , depth_stencil : wgpu :: DepthStencilState , ) -> Result < Self > { Self :: from_vec ( std :: fs :: read ( path ) ? , cx , format , depth_stencil ) }
Loads a font from a path.
Loads a font from a path .
path
impl AsRef<Path>
cx
&Context
format
wgpu::TextureFormat
depth_stencil
wgpu::DepthStencilState