Contents

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