CTLineCreateJustifiedLine(_:_:_:)
Creates a justified line from an existing line.
Declaration
func CTLineCreateJustifiedLine(_ line: CTLine, _ justificationFactor: CGFloat, _ justificationWidth: Double) -> CTLine?Parameters
- line:
The line from which to create a justified line.
- justificationFactor:
Full or partial justification. When set to
1.0or greater, full justification is performed. If this parameter is set to less than1.0, varying degrees of partial justification are performed. If it is set to0or less, no justification is performed. - justificationWidth:
The width to which the resultant line is justified. If
justificationWidthis less than the actual width of the line, then negative justification is performed (that is, glyphs are squeezed together).
Return Value
A reference to a justified CTLine object if the call was successful; otherwise, NULL.