setShouldSmoothFonts(_:)
Enables or disables font smoothing in a graphics context.
Declaration
func setShouldSmoothFonts(_ shouldSmoothFonts: Bool)Parameters
- shouldSmoothFonts:
A Boolean value that specifies whether to enable font smoothing.
Discussion
There are cases, such as rendering to a bitmap, when font smoothing is not appropriate and should be disabled. Note that some contexts (such as PostScript contexts) do not support font smoothing.
This parameter is part of the graphics state. Because of this, you use this when you want to temporarily override this setting in a drawing method.
See Also
Drawing Text
textMatrixtextPositionselectFont(name:size:textEncoding:)setCharacterSpacing(_:)setFont(_:)setFontSize(_:)setTextDrawingMode(_:)setAllowsFontSmoothing(_:)setAllowsFontSubpixelPositioning(_:)setAllowsFontSubpixelQuantization(_:)setShouldSubpixelPositionFonts(_:)setShouldSubpixelQuantizeFonts(_:)showGlyphs(g:count:)showGlyphs(_:at:)showGlyphsAtPoint(x:y:glyphs:count:)