pub struct FontStyleRef {
pub font: FontId,
pub size: f32,
}Expand description
Font and size of a text run.
§Examples
use ferrochart_core::frame::{FontId, FontStyleRef};
let style = FontStyleRef { font: FontId(0), size: 12.0 };
assert_eq!(style.size, 12.0);Fields§
§font: FontIdFont.
size: f32Font size (em size) in physical pixels.
Trait Implementations§
Source§impl Clone for FontStyleRef
impl Clone for FontStyleRef
impl Copy for FontStyleRef
Source§impl Debug for FontStyleRef
impl Debug for FontStyleRef
Source§impl Default for FontStyleRef
impl Default for FontStyleRef
Source§impl PartialEq for FontStyleRef
impl PartialEq for FontStyleRef
impl StructuralPartialEq for FontStyleRef
Auto Trait Implementations§
impl Forget for FontStyleRef
impl Freeze for FontStyleRef
impl Move for FontStyleRef
impl RefUnwindSafe for FontStyleRef
impl Send for FontStyleRef
impl Sync for FontStyleRef
impl Unpin for FontStyleRef
impl UnsafeUnpin for FontStyleRef
impl UnwindSafe for FontStyleRef
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