pub struct Font {
pub name: String,
pub path: PathBuf,
}Expand description
A very high-level view of a font, only concerned with the name and its file location.
##Example
use fontconfig::{Font, FontConfig};
let mut config = FontConfig::default();
let font = config.find("sans-serif".to_string(), Some("italic".to_string())).unwrap();
println!("Name: {}\nPath: {}", font.name, font.path.display());Fields§
§name: StringThe true name of this font
path: PathBufThe location of this font on the filesystem.
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more