pub struct EmbeddedFont {
pub typeface: String,
pub style: FontStyle,
pub charset: FontCharset,
pub panose: Option<String>,
pub pitch_family: u8,
pub data: Vec<u8>,
pub relationship_id: String,
}Expand description
A single embedded font entry
Fields§
§typeface: String§style: FontStyle§charset: FontCharset§panose: Option<String>§pitch_family: u8§data: Vec<u8>§relationship_id: StringImplementations§
Source§impl EmbeddedFont
impl EmbeddedFont
Sourcepub fn new(
typeface: &str,
style: FontStyle,
data: Vec<u8>,
rel_id: &str,
) -> Self
pub fn new( typeface: &str, style: FontStyle, data: Vec<u8>, rel_id: &str, ) -> Self
Create a new embedded font entry
pub fn charset(self, charset: FontCharset) -> Self
pub fn panose(self, panose: &str) -> Self
pub fn pitch_family(self, pf: u8) -> Self
Sourcepub fn content_type() -> &'static str
pub fn content_type() -> &'static str
Content type for the embedded font part
Sourcepub fn rel_target(&self) -> String
pub fn rel_target(&self) -> String
Relationship target relative to ppt/.
Trait Implementations§
Source§impl Clone for EmbeddedFont
impl Clone for EmbeddedFont
Source§fn clone(&self) -> EmbeddedFont
fn clone(&self) -> EmbeddedFont
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EmbeddedFont
impl RefUnwindSafe for EmbeddedFont
impl Send for EmbeddedFont
impl Sync for EmbeddedFont
impl Unpin for EmbeddedFont
impl UnsafeUnpin for EmbeddedFont
impl UnwindSafe for EmbeddedFont
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