Instance Method
metricsValue(_:atHeight:) metricsValue:atHeight: metricsValue_atHeight_
Metric value for a side at a measurement height.
Declaration
func metricsValue(_ side: GSMetricNumbers, atHeight height: Int) -> CGFloatDeclaration
- (CGFloat) metricsValue:(GSMetricNumbers) side atHeight:(NSInteger) height;Declaration
metricsValue_atHeight_(side: GSMetricNumbers, height: int) -> floatParameters
sideThe metric side to measure.
heightThe coordinate at which to measure the side bearing.
Discussion
For horizontal side bearings, the height is a y coordinate. For vertical side bearings, the height is an x coordinate. Returns NSNotFound when no value can be measured.
See Also
Metric Values
Value described by a metrics key for a metric side, or
nilwhen the key cannot be resolved.Value and height described by a metrics key for a metric side, or
nilwhen the key cannot be resolved.
See Also
Metric Values
Value described by a metrics key for a metric side.
Evaluates a metrics key for a metric side.