Struct andrew::text::fontconfig::FontConfig [−][src]
pub struct FontConfig { /* fields omitted */ }
Represents the main fontconfig config file
Implementations
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 RefUnwindSafe for FontConfig
impl Send for FontConfig
impl Sync for FontConfig
impl Unpin for FontConfig
impl UnwindSafe for FontConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,