pub struct MathConstants {Show 56 fields
pub script_percent_scale_down: i16,
pub script_script_percent_scale_down: i16,
pub delimited_sub_formula_min_height: UfWord,
pub display_operator_min_height: UfWord,
pub math_leading: MathValueRecord,
pub axis_height: MathValueRecord,
pub accent_base_height: MathValueRecord,
pub flattened_accent_base_height: MathValueRecord,
pub subscript_shift_down: MathValueRecord,
pub subscript_top_max: MathValueRecord,
pub subscript_baseline_drop_min: MathValueRecord,
pub superscript_shift_up: MathValueRecord,
pub superscript_shift_up_cramped: MathValueRecord,
pub superscript_bottom_min: MathValueRecord,
pub superscript_baseline_drop_max: MathValueRecord,
pub sub_superscript_gap_min: MathValueRecord,
pub superscript_bottom_max_with_subscript: MathValueRecord,
pub space_after_script: MathValueRecord,
pub upper_limit_gap_min: MathValueRecord,
pub upper_limit_baseline_rise_min: MathValueRecord,
pub lower_limit_gap_min: MathValueRecord,
pub lower_limit_baseline_drop_min: MathValueRecord,
pub stack_top_shift_up: MathValueRecord,
pub stack_top_display_style_shift_up: MathValueRecord,
pub stack_bottom_shift_down: MathValueRecord,
pub stack_bottom_display_style_shift_down: MathValueRecord,
pub stack_gap_min: MathValueRecord,
pub stack_display_style_gap_min: MathValueRecord,
pub stretch_stack_top_shift_up: MathValueRecord,
pub stretch_stack_bottom_shift_down: MathValueRecord,
pub stretch_stack_gap_above_min: MathValueRecord,
pub stretch_stack_gap_below_min: MathValueRecord,
pub fraction_numerator_shift_up: MathValueRecord,
pub fraction_numerator_display_style_shift_up: MathValueRecord,
pub fraction_denominator_shift_down: MathValueRecord,
pub fraction_denominator_display_style_shift_down: MathValueRecord,
pub fraction_numerator_gap_min: MathValueRecord,
pub fraction_num_display_style_gap_min: MathValueRecord,
pub fraction_rule_thickness: MathValueRecord,
pub fraction_denominator_gap_min: MathValueRecord,
pub fraction_denom_display_style_gap_min: MathValueRecord,
pub skewed_fraction_horizontal_gap: MathValueRecord,
pub skewed_fraction_vertical_gap: MathValueRecord,
pub overbar_vertical_gap: MathValueRecord,
pub overbar_rule_thickness: MathValueRecord,
pub overbar_extra_ascender: MathValueRecord,
pub underbar_vertical_gap: MathValueRecord,
pub underbar_rule_thickness: MathValueRecord,
pub underbar_extra_descender: MathValueRecord,
pub radical_vertical_gap: MathValueRecord,
pub radical_display_style_vertical_gap: MathValueRecord,
pub radical_rule_thickness: MathValueRecord,
pub radical_extra_ascender: MathValueRecord,
pub radical_kern_before_degree: MathValueRecord,
pub radical_kern_after_degree: MathValueRecord,
pub radical_degree_bottom_raise_percent: i16,
}tables only.Expand description
Fields§
§script_percent_scale_down: i16Percentage of scaling down for level 1 superscripts and subscripts.
script_script_percent_scale_down: i16Percentage of scaling down for level 2 (scriptScript) superscripts and subscripts.
delimited_sub_formula_min_height: UfWordMinimum height required for a delimited expression (contained within parentheses, etc.) to be treated as a sub-formula.
display_operator_min_height: UfWordMinimum height of n-ary operators (such as integral and summation) for formulas in display mode (that is, appearing as standalone page elements, not embedded inline within text).
math_leading: MathValueRecordWhite space to be left between math formulas to ensure proper line spacing.
axis_height: MathValueRecordAxis height of the font.
accent_base_height: MathValueRecordMaximum (ink) height of accent base that does not require raising the accents.
flattened_accent_base_height: MathValueRecordMaximum (ink) height of accent base that does not require flattening the accents.
subscript_shift_down: MathValueRecordThe standard shift down applied to subscript elements.
subscript_top_max: MathValueRecordMaximum allowed height of the (ink) top of subscripts that does not require moving subscripts further down.
subscript_baseline_drop_min: MathValueRecordMinimum allowed drop of the baseline of subscripts relative to the (ink) bottom of the base.
superscript_shift_up: MathValueRecordStandard shift up applied to superscript elements.
superscript_shift_up_cramped: MathValueRecordStandard shift of superscripts relative to the base, in cramped style.
superscript_bottom_min: MathValueRecordMinimum allowed height of the (ink) bottom of superscripts that does not require moving subscripts further up.
superscript_baseline_drop_max: MathValueRecordMaximum allowed drop of the baseline of superscripts relative to the (ink) top of the base.
sub_superscript_gap_min: MathValueRecordMinimum gap between the superscript and subscript ink.
superscript_bottom_max_with_subscript: MathValueRecordThe maximum level to which the (ink) bottom of superscript can be pushed to increase the gap between superscript and subscript, before subscript starts being moved down.
space_after_script: MathValueRecordExtra white space to be added after each subscript and superscript.
upper_limit_gap_min: MathValueRecordMinimum gap between the (ink) bottom of the upper limit, and the (ink) top of the base operator.
upper_limit_baseline_rise_min: MathValueRecordMinimum distance between baseline of upper limit and (ink) top of the base operator.
lower_limit_gap_min: MathValueRecordMinimum gap between (ink) top of the lower limit, and (ink) bottom of the base operator.
lower_limit_baseline_drop_min: MathValueRecordMinimum distance between baseline of the lower limit and (ink) bottom of the base operator.
stack_top_shift_up: MathValueRecordStandard shift up applied to the top element of a stack.
stack_top_display_style_shift_up: MathValueRecordStandard shift up applied to the top element of a stack in display style.
stack_bottom_shift_down: MathValueRecordStandard shift down applied to the bottom element of a stack.
stack_bottom_display_style_shift_down: MathValueRecordStandard shift down applied to the bottom element of a stack in display style.
stack_gap_min: MathValueRecordMinimum gap between (ink) bottom of the top element of a stack, and the (ink) top of the bottom element.
stack_display_style_gap_min: MathValueRecordMinimum gap between (ink) bottom of the top element of a stack, and the (ink) top of the bottom element in display style.
stretch_stack_top_shift_up: MathValueRecordStandard shift up applied to the top element of the stretch stack.
stretch_stack_bottom_shift_down: MathValueRecordStandard shift down applied to the bottom element of the stretch stack.
stretch_stack_gap_above_min: MathValueRecordMinimum gap between the ink of the stretched element, and the (ink) bottom of the element above.
stretch_stack_gap_below_min: MathValueRecordMinimum gap between the ink of the stretched element, and the (ink) top of the element below.
fraction_numerator_shift_up: MathValueRecordStandard shift up applied to the numerator.
fraction_numerator_display_style_shift_up: MathValueRecordStandard shift up applied to the numerator in display style.
fraction_denominator_shift_down: MathValueRecordStandard shift down applied to the denominator.
fraction_denominator_display_style_shift_down: MathValueRecordStandard shift down applied to the denominator in display style.
fraction_numerator_gap_min: MathValueRecordMinimum tolerated gap between the (ink) bottom of the numerator and the ink of the fraction bar.
fraction_num_display_style_gap_min: MathValueRecordMinimum tolerated gap between the (ink) bottom of the numerator and the ink of the fraction bar in display style.
fraction_rule_thickness: MathValueRecordThickness of the fraction bar.
fraction_denominator_gap_min: MathValueRecordMinimum tolerated gap between the ink of the fraction bar and the (ink) top of the denominator.
fraction_denom_display_style_gap_min: MathValueRecordMinimum tolerated gap between the ink of the fraction bar and the (ink) top of the denominator in display style.
skewed_fraction_horizontal_gap: MathValueRecordHorizontal distance between the top and bottom elements of a skewed fraction.
skewed_fraction_vertical_gap: MathValueRecordVertical distance between the ink of the top and bottom elements of a skewed fraction.
overbar_vertical_gap: MathValueRecordDistance between the overbar and the (ink) top of he base.
overbar_rule_thickness: MathValueRecordThickness of overbar.
overbar_extra_ascender: MathValueRecordExtra white space reserved above the overbar.
underbar_vertical_gap: MathValueRecordDistance between underbar and (ink) bottom of the base.
underbar_rule_thickness: MathValueRecordThickness of underbar.
underbar_extra_descender: MathValueRecordExtra white space reserved below the underbar.
radical_vertical_gap: MathValueRecordSpace between the (ink) top of the expression and the bar over it.
radical_display_style_vertical_gap: MathValueRecordSpace between the (ink) top of the expression and the bar over it in display style.
radical_rule_thickness: MathValueRecordThickness of the radical rule.
radical_extra_ascender: MathValueRecordExtra white space reserved above the radical.
radical_kern_before_degree: MathValueRecordExtra horizontal kern before the degree of a radical, if such is present.
radical_kern_after_degree: MathValueRecordNegative kern after the degree of a radical, if such is present.
radical_degree_bottom_raise_percent: i16Height of the bottom of the radical degree, if such is present, in proportion to the ascender of the radical sign.
Implementations§
Source§impl MathConstants
impl MathConstants
Sourcepub fn new(
script_percent_scale_down: i16,
script_script_percent_scale_down: i16,
delimited_sub_formula_min_height: UfWord,
display_operator_min_height: UfWord,
math_leading: MathValueRecord,
axis_height: MathValueRecord,
accent_base_height: MathValueRecord,
flattened_accent_base_height: MathValueRecord,
subscript_shift_down: MathValueRecord,
subscript_top_max: MathValueRecord,
subscript_baseline_drop_min: MathValueRecord,
superscript_shift_up: MathValueRecord,
superscript_shift_up_cramped: MathValueRecord,
superscript_bottom_min: MathValueRecord,
superscript_baseline_drop_max: MathValueRecord,
sub_superscript_gap_min: MathValueRecord,
superscript_bottom_max_with_subscript: MathValueRecord,
space_after_script: MathValueRecord,
upper_limit_gap_min: MathValueRecord,
upper_limit_baseline_rise_min: MathValueRecord,
lower_limit_gap_min: MathValueRecord,
lower_limit_baseline_drop_min: MathValueRecord,
stack_top_shift_up: MathValueRecord,
stack_top_display_style_shift_up: MathValueRecord,
stack_bottom_shift_down: MathValueRecord,
stack_bottom_display_style_shift_down: MathValueRecord,
stack_gap_min: MathValueRecord,
stack_display_style_gap_min: MathValueRecord,
stretch_stack_top_shift_up: MathValueRecord,
stretch_stack_bottom_shift_down: MathValueRecord,
stretch_stack_gap_above_min: MathValueRecord,
stretch_stack_gap_below_min: MathValueRecord,
fraction_numerator_shift_up: MathValueRecord,
fraction_numerator_display_style_shift_up: MathValueRecord,
fraction_denominator_shift_down: MathValueRecord,
fraction_denominator_display_style_shift_down: MathValueRecord,
fraction_numerator_gap_min: MathValueRecord,
fraction_num_display_style_gap_min: MathValueRecord,
fraction_rule_thickness: MathValueRecord,
fraction_denominator_gap_min: MathValueRecord,
fraction_denom_display_style_gap_min: MathValueRecord,
skewed_fraction_horizontal_gap: MathValueRecord,
skewed_fraction_vertical_gap: MathValueRecord,
overbar_vertical_gap: MathValueRecord,
overbar_rule_thickness: MathValueRecord,
overbar_extra_ascender: MathValueRecord,
underbar_vertical_gap: MathValueRecord,
underbar_rule_thickness: MathValueRecord,
underbar_extra_descender: MathValueRecord,
radical_vertical_gap: MathValueRecord,
radical_display_style_vertical_gap: MathValueRecord,
radical_rule_thickness: MathValueRecord,
radical_extra_ascender: MathValueRecord,
radical_kern_before_degree: MathValueRecord,
radical_kern_after_degree: MathValueRecord,
radical_degree_bottom_raise_percent: i16,
) -> Self
pub fn new( script_percent_scale_down: i16, script_script_percent_scale_down: i16, delimited_sub_formula_min_height: UfWord, display_operator_min_height: UfWord, math_leading: MathValueRecord, axis_height: MathValueRecord, accent_base_height: MathValueRecord, flattened_accent_base_height: MathValueRecord, subscript_shift_down: MathValueRecord, subscript_top_max: MathValueRecord, subscript_baseline_drop_min: MathValueRecord, superscript_shift_up: MathValueRecord, superscript_shift_up_cramped: MathValueRecord, superscript_bottom_min: MathValueRecord, superscript_baseline_drop_max: MathValueRecord, sub_superscript_gap_min: MathValueRecord, superscript_bottom_max_with_subscript: MathValueRecord, space_after_script: MathValueRecord, upper_limit_gap_min: MathValueRecord, upper_limit_baseline_rise_min: MathValueRecord, lower_limit_gap_min: MathValueRecord, lower_limit_baseline_drop_min: MathValueRecord, stack_top_shift_up: MathValueRecord, stack_top_display_style_shift_up: MathValueRecord, stack_bottom_shift_down: MathValueRecord, stack_bottom_display_style_shift_down: MathValueRecord, stack_gap_min: MathValueRecord, stack_display_style_gap_min: MathValueRecord, stretch_stack_top_shift_up: MathValueRecord, stretch_stack_bottom_shift_down: MathValueRecord, stretch_stack_gap_above_min: MathValueRecord, stretch_stack_gap_below_min: MathValueRecord, fraction_numerator_shift_up: MathValueRecord, fraction_numerator_display_style_shift_up: MathValueRecord, fraction_denominator_shift_down: MathValueRecord, fraction_denominator_display_style_shift_down: MathValueRecord, fraction_numerator_gap_min: MathValueRecord, fraction_num_display_style_gap_min: MathValueRecord, fraction_rule_thickness: MathValueRecord, fraction_denominator_gap_min: MathValueRecord, fraction_denom_display_style_gap_min: MathValueRecord, skewed_fraction_horizontal_gap: MathValueRecord, skewed_fraction_vertical_gap: MathValueRecord, overbar_vertical_gap: MathValueRecord, overbar_rule_thickness: MathValueRecord, overbar_extra_ascender: MathValueRecord, underbar_vertical_gap: MathValueRecord, underbar_rule_thickness: MathValueRecord, underbar_extra_descender: MathValueRecord, radical_vertical_gap: MathValueRecord, radical_display_style_vertical_gap: MathValueRecord, radical_rule_thickness: MathValueRecord, radical_extra_ascender: MathValueRecord, radical_kern_before_degree: MathValueRecord, radical_kern_after_degree: MathValueRecord, radical_degree_bottom_raise_percent: i16, ) -> Self
Construct a new MathConstants
Trait Implementations§
Source§impl Clone for MathConstants
impl Clone for MathConstants
Source§impl Debug for MathConstants
impl Debug for MathConstants
Source§impl Default for MathConstants
impl Default for MathConstants
Source§impl<'de> Deserialize<'de> for MathConstants
Available on crate feature serde only.
impl<'de> Deserialize<'de> for MathConstants
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for MathConstants
Source§impl<'a> FontRead<'a> for MathConstants
impl<'a> FontRead<'a> for MathConstants
Source§impl FontWrite for MathConstants
impl FontWrite for MathConstants
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<'a> FromObjRef<MathConstants<'a>> for MathConstants
impl<'a> FromObjRef<MathConstants<'a>> for MathConstants
Source§fn from_obj_ref(obj: &MathConstants<'a>, _: FontData<'_>) -> Self
fn from_obj_ref(obj: &MathConstants<'a>, _: FontData<'_>) -> Self
from to an instance of Self, using the provided data to resolve offsets.Source§impl<'a> FromTableRef<MathConstants<'a>> for MathConstants
impl<'a> FromTableRef<MathConstants<'a>> for MathConstants
fn from_table_ref(from: &T) -> Self
Source§impl Hash for MathConstants
impl Hash for MathConstants
Source§impl Ord for MathConstants
impl Ord for MathConstants
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MathConstants
impl PartialEq for MathConstants
Source§impl PartialOrd for MathConstants
impl PartialOrd for MathConstants
Source§impl Serialize for MathConstants
Available on crate feature serde only.
impl Serialize for MathConstants
serde only.impl StructuralPartialEq for MathConstants
Source§impl Validate for MathConstants
impl Validate for MathConstants
Source§fn validate_impl(&self, _ctx: &mut ValidationCtx)
fn validate_impl(&self, _ctx: &mut ValidationCtx)
Auto Trait Implementations§
impl Freeze for MathConstants
impl RefUnwindSafe for MathConstants
impl Send for MathConstants
impl Sync for MathConstants
impl Unpin for MathConstants
impl UnsafeUnpin for MathConstants
impl UnwindSafe for MathConstants
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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
tables only.T, using the provided data to resolve any offsets.Source§impl<U, T> ToOwnedTable<U> for Twhere
U: FromTableRef<T>,
impl<U, T> ToOwnedTable<U> for Twhere
U: FromTableRef<T>,
Source§fn to_owned_table(&self) -> U
fn to_owned_table(&self) -> U
tables only.