pub struct RetainedGraphicsState {Show 15 fields
pub auto_flip: bool,
pub control_value_cutin: F26Dot6,
pub delta_base: u16,
pub delta_shift: u16,
pub instruct_control: u8,
pub min_distance: F26Dot6,
pub scan_control: bool,
pub scan_type: i32,
pub single_width_cutin: F26Dot6,
pub single_width: F26Dot6,
pub target: Target,
pub scale: i32,
pub ppem: i32,
pub is_rotated: bool,
pub is_stretched: bool,
}
Expand description
The persistent graphics state.
Some of the graphics state is set by the control value program and persists between runs of the interpreter. This struct captures that state.
See https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html
Fields§
§auto_flip: bool
Controls whether the sign of control value table entries will be changed to match the sign of the actual distance measurement with which it is compared.
See https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#auto%20flip
control_value_cutin: F26Dot6
Limits the regularizing effects of control value table entries to cases where the difference between the table value and the measurement taken from the original outline is sufficiently small.
See https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#control_value_cut-in
delta_base: u16
Establishes the base value used to calculate the range of point sizes to which a given DELTAC[] or DELTAP[] instruction will apply.
See https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#delta%20base
delta_shift: u16
Determines the range of movement and smallest magnitude of movement (the step) in a DELTAC[] or DELTAP[] instruction.
See https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#delta%20shift
instruct_control: u8
Makes it possible to turn off instructions under some circumstances. When set to TRUE, no instructions will be executed
See https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#instruct%20control
min_distance: F26Dot6
Establishes the smallest possible value to which a distance will be rounded.
See https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#minimum%20distance
scan_control: bool
Determines whether the interpreter will activate dropout control for the current glyph.
See https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#scan%20control
scan_type: i32
Type associated with scan_control
.
single_width_cutin: F26Dot6
The distance difference below which the interpreter will replace a CVT distance or an actual distance in favor of the single width value.
See https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#single_width_cut_in
single_width: F26Dot6
The value used in place of the control value table distance or the actual distance value when the difference between that distance and the single width value is less than the single width cut-in.
See https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#single_width_value
target: Target
The user requested hinting target.
scale: i32
The scale factor for the current instance. Conversion from font units to 26.6 for current ppem.
ppem: i32
The nominal pixels per em value for the current instance.
is_rotated: bool
True if a rotation is being applied.
is_stretched: bool
True if a non-uniform scale is being applied.
Implementations§
Trait Implementations§
Source§impl Clone for RetainedGraphicsState
impl Clone for RetainedGraphicsState
Source§fn clone(&self) -> RetainedGraphicsState
fn clone(&self) -> RetainedGraphicsState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more