pub struct Type1PdfFont {
pub font: Type1Font,
pub encoding: [Option<String>; 256],
pub widths: [f64; 256],
pub font_matrix: Matrix,
pub weight_vector: Option<Vec<f64>>,
pub builtin_fallback: bool,
pub per_char_width_scale: bool,
}Fields§
§font: Type1Font§encoding: [Option<String>; 256]§widths: [f64; 256]§font_matrix: Matrix§weight_vector: Option<Vec<f64>>Multiple Master weight vector (for blend OtherSubrs 14-17).
builtin_fallback: boolWhen true, glyph lookup falls back to the font’s built-in encoding if the PDF encoding’s glyph name isn’t in CharStrings. Only set for symbolic fonts where the naming convention is completely incompatible (e.g. StandardEncoding “A” vs font’s custom “G41”).
per_char_width_scale: boolWhen true, per-character width scaling adjusts each glyph horizontally to match the PDF’s /Widths. Set for non-metric-compatible substitutes (e.g. NimbusSans for LucidaSans) where the average width mismatch exceeds 3%. NOT set for metric-compatible substitutes (e.g. NimbusRoman for TimesNewRoman) where widths already match.
Auto Trait Implementations§
impl Freeze for Type1PdfFont
impl RefUnwindSafe for Type1PdfFont
impl Send for Type1PdfFont
impl Sync for Type1PdfFont
impl Unpin for Type1PdfFont
impl UnsafeUnpin for Type1PdfFont
impl UnwindSafe for Type1PdfFont
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more