Struct write_fonts::tables::post::Post
source · pub struct Post {
pub version: Version16Dot16,
pub italic_angle: Fixed,
pub underline_position: FWord,
pub underline_thickness: FWord,
pub is_fixed_pitch: u32,
pub min_mem_type42: u32,
pub max_mem_type42: u32,
pub min_mem_type1: u32,
pub max_mem_type1: u32,
pub num_glyphs: Option<u16>,
pub glyph_name_index: Option<Vec<u16>>,
pub string_data: Option<Vec<PString>>,
}Expand description
post (PostScript) table
Fields§
§version: Version16Dot160x00010000 for version 1.0 0x00020000 for version 2.0 0x00025000 for version 2.5 (deprecated) 0x00030000 for version 3.0
italic_angle: FixedItalic angle in counter-clockwise degrees from the vertical. Zero for upright text, negative for text that leans to the right (forward).
underline_position: FWordThis is the suggested distance of the top of the underline from the baseline (negative values indicate below baseline). The PostScript definition of this FontInfo dictionary key (the y coordinate of the center of the stroke) is not used for historical reasons. The value of the PostScript key may be calculated by subtracting half the underlineThickness from the value of this field.
underline_thickness: FWordSuggested values for the underline thickness. In general, the underline thickness should match the thickness of the underscore character (U+005F LOW LINE), and should also match the strikeout thickness, which is specified in the OS/2 table.
is_fixed_pitch: u32Set to 0 if the font is proportionally spaced, non-zero if the font is not proportionally spaced (i.e. monospaced).
min_mem_type42: u32Minimum memory usage when an OpenType font is downloaded.
max_mem_type42: u32Maximum memory usage when an OpenType font is downloaded.
min_mem_type1: u32Minimum memory usage when an OpenType font is downloaded as a Type 1 font.
max_mem_type1: u32Maximum memory usage when an OpenType font is downloaded as a Type 1 font.
num_glyphs: Option<u16>Number of glyphs (this should be the same as numGlyphs in ‘maxp’ table).
glyph_name_index: Option<Vec<u16>>Array of indices into the string data. See below for details.
string_data: Option<Vec<PString>>Storage for the string data.
Implementations§
Trait Implementations§
source§impl FontWrite for Post
impl FontWrite for Post
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
source§impl Ord for Post
impl Ord for Post
source§impl PartialEq for Post
impl PartialEq for Post
source§impl PartialOrd for Post
impl PartialOrd for Post
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl Validate for Post
impl Validate for Post
source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
impl Eq for Post
impl StructuralPartialEq for Post
Auto Trait Implementations§
impl RefUnwindSafe for Post
impl Send for Post
impl Sync for Post
impl Unpin for Post
impl UnwindSafe for Post
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.source§impl<'a, T> FontReadWithArgs<'a> for Twhere
T: FontRead<'a>,
impl<'a, T> FontReadWithArgs<'a> for Twhere
T: FontRead<'a>,
source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.