[−][src]Struct andrew::text::fontconfig::FontConfig
Represents the main fontconfig config file
Methods
impl FontConfig
[src]
pub fn new() -> Result<FontConfig, ()>
[src]
Creates a new FontConfig object by looking for the fontconfig config file
pub fn get_location(&self) -> &Path
[src]
Returns the location of the fontconfig config file being used
pub fn get_font_dirs(&self) -> Vec<PathBuf>
[src]
Get the directories that contain fonts
pub fn get_fonts(&self) -> Result<Vec<PathBuf>, Error>
[src]
Return all fonts installed on the system
pub fn get_font_dir_files(&self) -> Result<Vec<PathBuf>, Error>
[src]
Return all 'fonts.dir' files in font directories
pub fn get_regular_family_fonts(
&self,
family: &str
) -> Result<Vec<PathBuf>, Error>
[src]
&self,
family: &str
) -> Result<Vec<PathBuf>, Error>
Returns the paths of regular fonts belonging to a specific family installed on the system
Auto Trait Implementations
impl Send for FontConfig
impl Unpin for FontConfig
impl Sync for FontConfig
impl UnwindSafe for FontConfig
impl RefUnwindSafe for FontConfig
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,