setAllowsFontSmoothing(_:)
Sets whether or not to allow font smoothing for a graphics context.
Declaration
func setAllowsFontSmoothing(_ allowsFontSmoothing: Bool)Parameters
- allowsFontSmoothing:
A Boolean value that specifies whether font smoothing is allowed in the specified context.
Discussion
Font are smoothed if they are antialiased when drawn and if font smoothing is both allowed and enabled. For information on how to enable font smoothing, see the setShouldSmoothFonts(_:) function. It is not usually necessary to make changes to both parameters at the same time; either can be used to disable font smoothing.
This parameter is not part of the graphics state.
See Also
Drawing Text
textMatrixtextPositionselectFont(name:size:textEncoding:)setCharacterSpacing(_:)setFont(_:)setFontSize(_:)setTextDrawingMode(_:)setAllowsFontSubpixelPositioning(_:)setAllowsFontSubpixelQuantization(_:)setShouldSmoothFonts(_:)setShouldSubpixelPositionFonts(_:)setShouldSubpixelQuantizeFonts(_:)showGlyphs(g:count:)showGlyphs(_:at:)showGlyphsAtPoint(x:y:glyphs:count:)