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