setCharacterSpacing(_:)
Sets the current character spacing.
Declaration
func setCharacterSpacing(_ spacing: CGFloat)Parameters
- spacing:
A value that represents the amount of additional space to place between glyphs, in text space coordinates.
Discussion
Core Graphics adds the additional space to the advance between the origin of one character and the origin of the next character. For information about the text coordinate system, see CGContextSetTextMatrix.
See Also
Drawing Text
textMatrixtextPositionselectFont(name:size:textEncoding:)setFont(_:)setFontSize(_:)setTextDrawingMode(_:)setAllowsFontSmoothing(_:)setAllowsFontSubpixelPositioning(_:)setAllowsFontSubpixelQuantization(_:)setShouldSmoothFonts(_:)setShouldSubpixelPositionFonts(_:)setShouldSubpixelQuantizeFonts(_:)showGlyphs(g:count:)showGlyphs(_:at:)showGlyphsAtPoint(x:y:glyphs:count:)