Struct freetype::library::Library
[−]
[src]
pub struct Library { /* fields omitted */ }
Methods
impl Library
[src]
fn init() -> FtResult<Self>
[src]
This function is used to create a new FreeType library instance and add the default modules. It returns a struct encapsulating the freetype library. The library is correctly discarded when the struct is dropped.
fn new_face<P>(&self, path: P, face_index: isize) -> FtResult<Face> where
P: AsRef<OsStr>,
[src]
P: AsRef<OsStr>,
Open a font file using its pathname. face_index
should be 0 if there is only 1 font
in the file.
fn new_memory_face<T>(&self, buffer: T, face_index: isize) -> FtResult<Face> where
T: Into<Rc<Vec<u8>>>,
[src]
T: Into<Rc<Vec<u8>>>,
Similar to new_face
, but loads file data from a byte array in memory
fn set_lcd_filter(&self, lcd_filter: LcdFilter) -> FtResult<()>
[src]
fn raw(&self) -> FT_Library
[src]
Get the underlying library object