CTLineGetPenOffsetForFlush(_:_:_:)
Gets the pen offset required to draw flush text.
Declaration
func CTLineGetPenOffsetForFlush(_ line: CTLine, _ flushFactor: CGFloat, _ flushWidth: Double) -> DoubleParameters
- line:
The line from which to obtain a flush position.
- flushFactor:
Determines the type of flushness. A
flushFactorof0or less indicates left flush. AflushFactorof1.0or more indicates right flush. Flush factors between0and1.0indicate varying degrees of center flush, with a value of0.5being totally center flush. - flushWidth:
Specifies the width to which the flushness operation should apply.
Return Value
The offset from the current pen position for the flush operation.