setAllowsFontSubpixelPositioning(_:)
Sets whether or not to allow subpixel positioning for a graphics context.
Declaration
func setAllowsFontSubpixelPositioning(_ allowsFontSubpixelPositioning: Bool)Parameters
- allowsFontSubpixelPositioning:
A Boolean value that specifies whether subpixel positioning of glyphs is allowed in the specified context.
Discussion
Sub-pixel positioning is used by the graphics context if it is allowed, enabled, and if the font itself is antialiased when drawn. For information on how to enable subpixel positioning, see the setShouldSubpixelPositionFonts(_:) function.
This parameter is not part of the graphics state.
See Also
Drawing Text
textMatrixtextPositionselectFont(name:size:textEncoding:)setCharacterSpacing(_:)setFont(_:)setFontSize(_:)setTextDrawingMode(_:)setAllowsFontSmoothing(_:)setAllowsFontSubpixelQuantization(_:)setShouldSmoothFonts(_:)setShouldSubpixelPositionFonts(_:)setShouldSubpixelQuantizeFonts(_:)showGlyphs(g:count:)showGlyphs(_:at:)showGlyphsAtPoint(x:y:glyphs:count:)