setShouldSubpixelPositionFonts(_:)
Enables or disables subpixel positioning in a graphics context.
Declaration
func setShouldSubpixelPositionFonts(_ shouldSubpixelPositionFonts: Bool)Parameters
- shouldSubpixelPositionFonts:
A Boolean value that specifies whether to enable subpixel positioning.
Discussion
When enabled, the graphics context may position glyphs on nonintegral pixel boundaries. When disabled, the position of glyphs are always forced to integral pixel boundaries.
This parameter is part of the graphics state.
See Also
Drawing Text
textMatrixtextPositionselectFont(name:size:textEncoding:)setCharacterSpacing(_:)setFont(_:)setFontSize(_:)setTextDrawingMode(_:)setAllowsFontSmoothing(_:)setAllowsFontSubpixelPositioning(_:)setAllowsFontSubpixelQuantization(_:)setShouldSmoothFonts(_:)setShouldSubpixelQuantizeFonts(_:)showGlyphs(g:count:)showGlyphs(_:at:)showGlyphsAtPoint(x:y:glyphs:count:)