Contents

setAllowsFontSmoothing(_:)

Sets whether or not to allow font smoothing for a graphics context.

Declaration

func setAllowsFontSmoothing(_ allowsFontSmoothing: Bool)

Parameters

  • allowsFontSmoothing:

    A Boolean value that specifies whether font smoothing is allowed in the specified context.

Discussion

Font are smoothed if they are antialiased when drawn and if font smoothing is both allowed and enabled. For information on how to enable font smoothing, see the setShouldSmoothFonts(_:) function. It is not usually necessary to make changes to both parameters at the same time; either can be used to disable font smoothing.

This parameter is not part of the graphics state.

See Also

Drawing Text