Function

CGContextSetShouldSubpixelQuantizeFonts

Enables or disables subpixel quantization in a graphics context.

Declaration

void CGContextSetShouldSubpixelQuantizeFonts(CGContextRef c, bool shouldSubpixelQuantizeFonts);

Parameters

context

A graphics context.

shouldSubpixelQuantizeFonts

A Boolean value that specifies whether to enable subpixel quantization.

Discussion

When enabled, the graphics context may quantize the subpixel positions of glyphs.

This parameter is part of the graphics state.

See Also

Getting and Setting Graphics State Parameters

CGContextGetInterpolationQuality

Returns the current level of interpolation quality for a graphics context.

CGContextSetFlatness

Sets the accuracy of curved paths in a graphics context.

CGContextSetInterpolationQuality

Sets the level of interpolation quality for a graphics context.

CGContextSetLineCap

Sets the style for the endpoints of lines drawn in a graphics context.

CGContextSetLineDash

Sets the pattern for dashed lines in a graphics context.

CGContextSetLineJoin

Sets the style for the joins of connected lines in a graphics context.

CGContextSetLineWidth

Sets the line width for a graphics context.

CGContextSetMiterLimit

Sets the miter limit for the joins of connected lines in a graphics context.

CGContextSetPatternPhase

Sets the pattern phase of a context.

CGContextSetFillPattern

Sets the fill pattern in the specified graphics context.

CGContextSetRenderingIntent

Sets the rendering intent in the current graphics state.

CGContextSetShouldAntialias

Sets antialiasing on or off for a graphics context.

CGContextSetStrokePattern

Sets the stroke pattern in the specified graphics context.

CGContextSetBlendMode

Sets how sample values are composited by a graphics context.

CGContextSetAllowsAntialiasing

Sets whether or not to allow antialiasing for a graphics context.

CGContextSetAllowsFontSmoothing

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

CGContextSetShouldSmoothFonts

Enables or disables font smoothing in a graphics context.

CGContextSetAllowsFontSubpixelPositioning

Sets whether or not to allow subpixel positioning for a graphics context.

CGContextSetShouldSubpixelPositionFonts

Enables or disables subpixel positioning in a graphics context.

CGContextSetAllowsFontSubpixelQuantization

Sets whether or not to allow subpixel quantization for a graphics context.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software