Contents

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